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:
parent
ffcc171c48
commit
085ac4e650
1 changed files with 9 additions and 0 deletions
|
@ -107,6 +107,15 @@ void patty_ax25_sock_destroy(patty_ax25_sock *sock) {
|
||||||
free(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) {
|
static size_t copy_addr_to_tx_buf(patty_ax25_sock *sock) {
|
||||||
void *buf = sock->iface->tx_buf;
|
void *buf = sock->iface->tx_buf;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue