From owner-freebsd-current@freebsd.org Mon Jul 17 10:10:28 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D45DD76499 for ; Mon, 17 Jul 2017 10:10:28 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from smtp.smtpout.orange.fr (smtp09.smtpout.orange.fr [80.12.242.131]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 67EE67F285 for ; Mon, 17 Jul 2017 10:10:26 +0000 (UTC) (envelope-from clbuisson@orange.fr) Received: from localhost ([92.134.9.250]) by mwinf5d18 with ME id lmAG1v00f5PgxqL03mAHln; Mon, 17 Jul 2017 12:10:17 +0200 X-ME-Helo: localhost X-ME-Auth: Y2xidWlzc29uQHdhbmFkb28uZnI= X-ME-Date: Mon, 17 Jul 2017 12:10:17 +0200 X-ME-IP: 92.134.9.250 Subject: Re: netgraph: documentation issue? What kernel options? Where to find? To: freebsd-current@freebsd.org References: <20170716224834.030e004b@thor.intern.walstatt.dynvpn.de> From: Claude Buisson Message-ID: <3bff559a-df2d-8c3b-5f60-55366145ade4@orange.fr> Date: Mon, 17 Jul 2017 12:10:16 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170716224834.030e004b@thor.intern.walstatt.dynvpn.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 10:10:28 -0000 On 07/16/2017 22:48, O. Hartmann wrote: > For a small SoC based system, I use a highly customised static kernel and build the > system via NanoBSD with no kernel modules. > > Tyring to track down some network issues with recent CURRENT I figured out, that when > using the ppp client to connect via modem to the ISP and there is no > > options NETGRAPH_ETHER > options NETGRAPH_PPPOE > > in the kernel configuration, the resulting system fails to establish a ppp session. The > man page states, that a netgraph node is established, but as hard as I look, I can not > find any(!) information in the man pages what options are necessary/optional to provide > the correct module statically. > > The same is for many other NETGRAPH_XXX features. Starting from man page "man 4 > netgraph", section "SEE ALSO", I started tweaking the kernel with NETGRAPH_XXX, i.e. > ng_vlan -> NETGRAPH_VLAN until the compiler bails out with an error, for instance > ng_car -> NETGRAPH_CAR. > > I tried to find out what options cover which netgraph module but there is - right, > nothing I can find on a direct route. > > Since netgraph isn't so brand new (I guess ~ 2000 from the PDFs I found on the network), > there must be some documentation other than "reading the source code". > > Please give me some hints where to find the entry point for the appropriate documented > options for netgraph modules. > > Obviously, some ng_xxx modules are prerequisite for some services to work properly, as > ppp - but I can't find any hints for "options NETGRAPH_ETHER" or "options NETGRAPH_PPPOE" > in the manpages (looked at ppp, pppoed). > > Thanks in advance, > kind regards > > Oliver > Here, using ppoe: /etc/ppp/ppp.conf ... set device PPPoE:re0 ... and I find: # kldstat ... netgraph.ko ng_ether.ko ng_pppoe.ko ng_socket.ko ... Hope this help CBuisson