Date: Wed, 10 Feb 1999 14:21:21 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Brian McGovern <bmcgover@cisco.com> Cc: hackers@FreeBSD.ORG Subject: Re: How to attach line disciplines (aka Stupid Question #2962) Message-ID: <Pine.BSF.3.95.990210141839.7067C-100000@current1.whistle.com> In-Reply-To: <199902101857.NAA00779@bmcgover-pc.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
use the MODULE_DECALRE macro. (Didn't we answer thsi for you a few days ago?) also see the ng_tty module for netgraph (ftp://ftp.whistle.com/pub/archie/netgraph/index.html) On Wed, 10 Feb 1999, Brian McGovern wrote: > I'm in the process of writing a relatively simple line discipline for doing > some data translations on input and output. I've been looking at the SLIP and > PPP line disciplines as examples, but I haven't quite figured out how to > attach this new line discipline without having a network interface to go > with it. > > What I really need to have happen is on boot time, call a function > vldattach(). This initializes all of the internal strutures, and sets > linesw[x] = my discipline, which should allow applications to change to > discipline X.... Pointers? > -Brian > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.990210141839.7067C-100000>