diff --git a/examples/patty.conf b/examples/patty.conf index 043877d..eacae20 100644 --- a/examples/patty.conf +++ b/examples/patty.conf @@ -1,4 +1,6 @@ sock /var/run/patty.sock pid /var/run/patty.pid if tnc0 ax25 KZ3ROX kiss /dev/ttyUSB0 baud 9600 +route default if tnc0 +route station GB9BLM path KX5UXQ WX3RKR listen tnc0 ssid 0 exec /usr/bin/login -l -h @peer diff --git a/include/patty/ax25/mux.h b/include/patty/ax25/mux.h index ffadd62..a2a92ca 100644 --- a/include/patty/ax25/mux.h +++ b/include/patty/ax25/mux.h @@ -20,14 +20,14 @@ enum patty_ax25_mux_request_type { PATTY_AX25_MUX_RECVFROM }; -int patty_ax25_mux_send(int fd, - enum patty_ax25_mux_request_type type, - void *data, - size_t len); +ssize_t patty_ax25_mux_send(int fd, + enum patty_ax25_mux_request_type type, + void *data, + size_t len); -int patty_ax25_mux_recv(int fd, - enum patty_ax25_mux_response_type type, - void *data, - size_t len); +ssize_t patty_ax25_mux_recv(int fd, + enum patty_ax25_mux_response_type *type, + void *data, + size_t len); #endif /* _PATTY_AX25_MUX_H */