From 530d2a45558adad1f1c0f1b3af9d8be73555a6ae Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 1 Oct 2020 18:04:53 -0400 Subject: [PATCH] Add bin/tncd.8 --- bin/Makefile | 2 +- bin/tncd.8 | 35 +++++++++++++++++++++++++++++++++++ bin/tncd.c | 2 +- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 bin/tncd.8 diff --git a/bin/Makefile b/bin/Makefile index c90b8bf..12c2ddc 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -9,7 +9,7 @@ CFLAGS += -I$(INCLUDE_PATH) LDFLAGS = -L../src -lpatty PROGRAMS = pattyd ax25dump tncd -MAN8PAGES = pattyd.8 ax25dump.8 +MAN8PAGES = pattyd.8 ax25dump.8 tncd.8 MANPAGES = $(MAN8PAGES) HEADERS = kiss.h if.h diff --git a/bin/tncd.8 b/bin/tncd.8 new file mode 100644 index 0000000..63f5020 --- /dev/null +++ b/bin/tncd.8 @@ -0,0 +1,35 @@ +.Dd $Mdocdate$ +.Dt TNCD 8 +.Os +.Sh NAME +.Nm tncd +.Nd create a KISS TNC from an AX.25 interface +.Sh SYNOPSIS +.Nm +.Ar patty.sock ifname +.Sh DESCRIPTION +.Nm +exposes a +.Xr pattyd 8 +interface as a KISS TNC via a pseudoterminal. This device can either be read +from or written to. The device can be connected to by only one process at a +time. However, multiple instances of +.Nm +can be attached to an interface simultaneously. Each frame sent out to the +interface, or received by the interface, is written to the KISS TNC device. +In turn, each frame received by the KISS TNC is sent out to the interface. +.Pp +Both arguments, +.Ar patty.sock , +a Unix domain socket to a +.Xr pattyd 8 +instance, and an +.Ar ifname , +an interface valid on that AX.25 daemon, are required. When a KISS TNC +device is successfully created, the pseudoterminal device name is printed to +standard output. +.Sh SEE ALSO +.Xr pattyd 8 , +.Xr pty 4 +.Sh AUTHORS +.An XANTRONIX Development Aq Mt dev@xantronix.com diff --git a/bin/tncd.c b/bin/tncd.c index a2a20d7..e5475a7 100644 --- a/bin/tncd.c +++ b/bin/tncd.c @@ -189,7 +189,7 @@ int main(int argc, char **argv) { goto error_pty_promisc; } - printf("pty %s\n", pty); + printf("%s\n", pty); while (1) { int pong;