Add bin/tncd.8

This commit is contained in:
XANTRONIX Development 2020-10-01 18:04:53 -04:00 committed by XANTRONIX Industrial
parent 65ae821342
commit 530d2a4555
3 changed files with 37 additions and 2 deletions

View file

@ -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

35
bin/tncd.8 Normal file
View file

@ -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

View file

@ -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;