Date: Sat, 26 Jan 2002 12:38:43 -0800 (PST) From: Archie Cobbs <archie@dellroad.org> To: Julian Elischer <julian@elischer.org> Cc: ome ome <olivmet@yahoo.com>, freebsd-net@FreeBSD.ORG Subject: Re: Netgraph Message-ID: <200201262038.g0QKchm35896@arch20m.dellroad.org> In-Reply-To: <Pine.BSF.4.21.0201251152390.32983-100000@InterJet.elischer.org> "from Julian Elischer at Jan 25, 2002 11:57:28 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer writes:
> you need to attach the tty node to a tty using the regular
> terminal "line disciplin" methods.
> (similar to the way the ppp protocol handler is attached to a tty
> for kernel ppp)
Right.. you can only create an ng_tty node by installing it
as a line discipline, e.g., something like this:
#include <sys/ttycom.h>
int fd, disc;
fd = open("/dev/cuaa0", O_RDWR);
disc = NETGRAPHDISC;
ioctl(fd, TIOCSETD, &disc);
...
-Archie
__________________________________________________________________________
Archie Cobbs * Packet Design * http://www.packetdesign.com
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201262038.g0QKchm35896>
