From owner-freebsd-net Sun Jan 27 11:29:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id B690C37B417 for ; Sun, 27 Jan 2002 11:29:17 -0800 (PST) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA17357; Sat, 26 Jan 2002 12:38:43 -0800 (PST) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.6/8.11.6) id g0QKchm35896; Sat, 26 Jan 2002 12:38:43 -0800 (PST) (envelope-from archie) From: Archie Cobbs Message-Id: <200201262038.g0QKchm35896@arch20m.dellroad.org> Subject: Re: Netgraph In-Reply-To: "from Julian Elischer at Jan 25, 2002 11:57:28 am" To: Julian Elischer Date: Sat, 26 Jan 2002 12:38:43 -0800 (PST) Cc: ome ome , freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL88 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 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