Date: Sun, 20 Oct 2002 14:18:22 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Steve Tremblett <sjt@cisco.com> Cc: freebsd-hackers@freebsd.org Subject: Re: dumb Q: netgraph node init? Message-ID: <Pine.BSF.4.21.0210201412390.19091-100000@InterJet.elischer.org> In-Reply-To: <20021020171139.B1512@sjt-u10.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Oct 2002, Steve Tremblett wrote: > +---- Julian Elischer wrote: > | > I have NETGRAPH_ETHER and NETGRAPH_PPPOE in my kernel config. I don't > | > start pppoe at boot time. Before ppp is up, ngctl shows ng_ether but > | > not pppoe. What defines how ng_ether is loaded and hooked at boot time > | > as opposed to ng_pppoe loaded and hooked automatically? > | > | ng_ether nodes are attached automatically to all exisiting ethernet > | interfaces. > | ng_pppoe nodes are only created when you ask for one. > | > | do a 'types' commnad in ngctl to see possible types to make. > > How does invoking pppd result in the PPPoE node being hooked and > initialized? It looks like pppd treats a device called "PPPoE:xl0" as > a serial device or am I missing something? Firstly it's not "pppd" but "ppp".. they are different programs. ppp opens a netgraph control socket and issues all the netgraph control messages needed to make a pppoe node and attach it to the selected interface. ng_ether has an init routine that is called during boot or when the module is loaded, (or when a new ethernet interfaace is added if it's already loaded). ng_pppoe has such a function too but it doesn't create any nodes up front, but just sets up some internal linkages (in fact I think it uses the default function provided by netgraph and doesn't have it's own). 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.4.21.0210201412390.19091-100000>