From owner-freebsd-net Sun Oct 6 19: 0:28 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96E9137B401 for ; Sun, 6 Oct 2002 19:00:26 -0700 (PDT) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13ECA43E81 for ; Sun, 6 Oct 2002 19:00:26 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20021007020025.QETB6431.sccrmhc01.attbi.com@InterJet.elischer.org>; Mon, 7 Oct 2002 02:00:25 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id SAA30890; Sun, 6 Oct 2002 18:45:59 -0700 (PDT) Date: Sun, 6 Oct 2002 18:45:59 -0700 (PDT) From: Julian Elischer To: Craig Rodrigues Cc: freebsd-net@freebsd.org Subject: Re: Netgraph and fxp0 interface? In-Reply-To: <20021006200245.A4829@attbi.com> Message-ID: 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 you also need the ng_eter option.. you can probably get it by: kldload ng_ether On Sun, 6 Oct 2002, Craig Rodrigues wrote: > Hi, > > I am trying to learn about Netgraph. I have set up > a -CURRENT system for testing. I am reading the tutorial at: > http://www.daemonnews.org/200003/netgraph.html > > According to this tutorial: > > "if your kernel was compiled with options NETGRAPH and you have an Ethernet > interface fxp0, this command will redirect all packets received by the > Ethernet card and dump them to standard output in hex/ASCII format: > > nghook -a fxp0: divert > " > > > On my system, I do have an fxp0 network card: > fxp0: port 0x7c60-0x7c7f mem 0xf3d00000-0xf3dfffff,0xf3cff000-0xf3cfffff irq 11 at device 3.0 on pci0 > > I also have the following specified in my kernel config file: > > device fxp # Intel EtherExpress PRO/100B (82557, 82558) > options NETGRAPH # netgraph networking > > > > However, if I execute nghook -a fxp0: divert (as the root user), I get: > > nghook: can't connect to node > > > If I do: ngctl list, I get: > > There are 2 total nodes: > Name: ngctl3796 Type: socket ID: 0000001d Num hooks: 0 > Name: fatm0 Type: atm ID: 0000000a Num hooks: 0 > > The fatm0 is from Harti Brandt's Netgraph ATM system which I am trying out. > ( http://www.fokus.fhg.de/research/cc/cats/employees/hartmut.brandt/ngatm/ ) > > Can someone tell me why doing an nghook on fxp0: is not working? > > Thanks. > > -- > Craig Rodrigues > http://www.gis.net/~craigr > rodrigc@attbi.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message