Commit graph

9 commits

Author SHA1 Message Date
XANTRONIX Development
25da758257 Implement patty_strlcpy()
Implement patty_strlcpy() for portability and correctness, to provide
BSD strlcpy() functionality for glibc systems while ensuring a nul
terminated string is written to a destination, truncating the source
string by one byte if need be to make room for the nul terminator
2024-03-01 00:20:47 -05:00
XANTRONIX Development
021eca720d Search for patty.sock in ax25dump(8), tncd(8)
Changes:

    * Modify patty_client_new() to accept NULL as a Unix domain socket
      path; when NULL is provided, search for the pattyd(8) socket in
      pattyd.sock, followed by the default full socket path,
      /var/run/patty/patty.sock

    * Modify bin/ax25dump.c, bin/tncd.c to use default socket paths when
      calling patty_client_new() by defaulting to NULL when no -s flag
      is provided
2024-03-01 00:20:47 -05:00
XANTRONIX Development
00879d33c5 Fix strncpy() compilation warnings
Fix strncpy() compilation warnings wherein the target string length did
not account for a nul terminator
2024-03-01 00:20:47 -05:00
XANTRONIX Development
7fdf3a8416 More argument parsing fixes 2024-03-01 00:20:47 -05:00
XANTRONIX Development
6942af9832 Slight tweaks to argument parsing 2024-03-01 00:20:47 -05:00
XANTRONIX Development
379264a956 Use getopt_long() in bin/tncd.c 2024-03-01 00:20:47 -05:00
XANTRONIX Development
530d2a4555 Add bin/tncd.8 2024-03-01 00:20:47 -05:00
XANTRONIX Development
62f4f2ca7c Improve bin/tncd.c
Changes:

    * Ensure TNC PTYs are closed on error

    * Instead of waiting indefinitely, use patty_client_ping() to poll
      the status of the patty daemon to exit in a timely manner
2024-03-01 00:20:47 -05:00
XANTRONIX Development
bec778de7b Implement bin/tncd.c
Implement bin/tncd.c to expose a network interface as a KISS TNC device
over a PTY
2024-03-01 00:20:47 -05:00