From owner-freebsd-hackers Tue Mar 28 21:46:25 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from muzak.iinet.net.au (muzak.iinet.net.au [203.59.24.237]) by hub.freebsd.org (Postfix) with ESMTP id 0961E37B614 for ; Tue, 28 Mar 2000 21:46:20 -0800 (PST) (envelope-from julian@elischer.org) Received: from jules.elischer.org (reggae-01-55.nv.iinet.net.au [203.59.62.55]) by muzak.iinet.net.au (8.8.5/8.8.5) with SMTP id NAA26455; Wed, 29 Mar 2000 13:43:49 +0800 Message-ID: <38E197AF.3F54BC7E@elischer.org> Date: Tue, 28 Mar 2000 21:42:07 -0800 From: Julian Elischer X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Brian Somers Cc: nsayer@kfu.com, freebsd-hackers@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: Colaberation invited -- ports/net/mpd-netgraph + pppoe References: <200003290251.DAA04841@hak.lan.Awfulhak.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > > If you want to test your results, I'd suggest using pppoed... if you > can talk to yourself and to ppp(8) then you've probably got it right. > > FWIW, my eventual aim is to bring more netgraph stuff into ppp(8).... Nick, Everything you need to do should be found in the pppoe file in the ppp sources (was it called 'ether.c') basically the code in the ng_pppoe man page example should still be basically correct. (I'll have to check if it's out of date.) (looks pretty correct) One additional bit. you can now send a message to the socket node to tell it to close down when the last connection is removed from it. this allows the ppp program to detect that the session has been terminated. and you can close the control socket as soon as the session is established. to do all this IN the kernel, you don't need the socket node, but rather, can connect the pppoe node directly to the ppp node. > > > I friend of mine just got Pac$Bell Internet (see the story in > > -questions), and he uses PPPoE over > > DSL to connect to the net. /usr/sbin/ppp works just fine, but being the > > sort I am, I am dissatisfied > > with the solution, since there's still so much context switching > > involved (given that the equivalent > > to ng_ppp is still in userland). > > > > The much better solution, IMHO, is to add PPPoE support to > > ports/net/mpd-netgraph, and I have > > embarked on a course to do so. It's slow going, as it's my first real > > grope into netgraph in a big > > way (playing with ngctl and ksockets doesn't count). > > > > I am plenty happy to talk with anyone about this and it would be > > particularly helpful if someone > > who uses PPPoE could test the result, when it's ready (my friend is not > > inclined to be a tester for > > this sort of thing. The current solution is good enough for him). > > > > The eventual goal, of course, is to have a pair of machines run PPP over > > a cross-connect 10baseT cable. > > At the moment, however, call "origination" is favored. -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message