|KISS(4)||Device Drivers Manual||KISS(4)|
kiss — KISS line
kiss line discipline can be attached
to serial lines to communicate with a TNC, including the following:
The TNC must already be in KISS mode before the line discipline is activated. Refer to the documentation for your TNC to find how to do this. It may be possible to perform automatic initialisation using a chat(8) script. When this line discipline is first attached, it will in turn attach to the first available ekiss(4) network interface, or any other interface that has registered with the line discipline.
For general use, once the interface has been created and configured, the line discipline can be attached using ldattach(8). For example, assuming the TNC is connected to /dev/cua00 at 1200 baud:
$ ldattach -s 1200 kiss cua00
The line discipline is also enabled by the following sequence:
#include <sys/ioctl.h> int ldisc = KISSDISC, fd; ... ioctl(fd, TIOCSETD, &ldisc);
The line discipline is aware of multi-drop in as far as incoming data on all ports will be accepted and will not trigger error conditions. The additional commands, acknowledge or polled mode, are not implemented. All data will be sent on port 0.
|September 1, 2019||HamBSD-current|