Implement missing functions in src/sock.c

Implement the following missing functions in src/sock.c:

    * patty_ax25_sock_pty()

    * patty_ax25_sock_bind_if()
This commit is contained in:
XANTRONIX Development 2020-07-02 16:06:51 -04:00 committed by XANTRONIX Industrial
parent ffcc171c48
commit 085ac4e650

View file

@ -107,6 +107,15 @@ void patty_ax25_sock_destroy(patty_ax25_sock *sock) {
free(sock);
}
char *patty_ax25_sock_pty(patty_ax25_sock *sock) {
return sock->path;
}
void patty_ax25_sock_bind_if(patty_ax25_sock *sock,
patty_ax25_if *iface) {
sock->iface = iface;
}
static size_t copy_addr_to_tx_buf(patty_ax25_sock *sock) {
void *buf = sock->iface->tx_buf;