From owner-freebsd-net Tue Nov 20 20:28:16 2001 Delivered-To: freebsd-net@freebsd.org Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by hub.freebsd.org (Postfix) with SMTP id E6BDD37B41E for ; Tue, 20 Nov 2001 20:27:57 -0800 (PST) Received: (qmail 22476 invoked by uid 1001); 21 Nov 2001 14:27:54 +1000 X-Posted-By: GJB-Post 2.22 07-Nov-2001 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Message-Id: Date: Wed, 21 Nov 2001 14:27:54 +1000 From: Greg Black To: Brian Somers Cc: Matthew Emmerton , net@FreeBSD.ORG Subject: Re: ppp(8) crashes 4.2-R when using netgraph(4) module References: <200111201924.fAKJOBv53857@hak.lan.Awfulhak.org> In-reply-to: <200111201924.fAKJOBv53857@hak.lan.Awfulhak.org> of Tue, 20 Nov 2001 19:24:11 GMT Mime-Version: 1.0 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 Brian Somers wrote: | > Dynamic loading of negraph modules is still broken, and probably won't be | > fixed until 5.0 (at least that's what the comments on the zillion PRs | > about this problem say.) | > | > Add 'options NETGRAPH_ETHER' and 'options NEGRAPH_SOCKET' to your kernel | > config file and rebuild your kernel. | | I dynamically load all the modules required for client and server | PPPoE on -stable and -current without problems: Well, I had already compiled all the netgraph stuff into the kernel before I saw this. And it did get rid of the netgraph complaints as part of the next few panics. | There is a problem where many of the NIC drivers get confused when | netgraph gives them packets before they're IFF_UP'd. ppp now works | around the problem by bringing the interface up as required. | | The originator should try building the latest version of ppp on his | 4.2 machine and see if that helps. I took the easy way out here and just ran ifconfig xl0 inet 10.0.0.1 After that, no more panics and the ADSL modem worked first time. Now, the final question: I have to implement something similar on a 4.1-R system several thousand km away. There's no question of upgrading it from 4.1 and I can't afford to have it panic. Is it reasonable to expect that PPPoE will work OK provided I add the netgraph stuff to the kernel and ensure the NIC is UP before running ppp? FYI, I also tried a different box that runs 4.3-R and it did not experience the panic that was seen on the 4.2-R system. Thanks a lot for the help with this. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message