From owner-freebsd-net Sun Oct 6 17: 2: 8 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 CDBB037B401 for ; Sun, 6 Oct 2002 17:02:06 -0700 (PDT) Received: from dibbler.ne.client2.attbi.com (dibbler.ne.client2.attbi.com [24.61.41.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id 360FA43E75 for ; Sun, 6 Oct 2002 17:02:06 -0700 (PDT) (envelope-from rodrigc@attbi.com) Received: from dibbler.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by dibbler.ne.client2.attbi.com (8.12.6/8.12.5) with ESMTP id g9702kPe004860 for ; Sun, 6 Oct 2002 20:02:46 -0400 (EDT) (envelope-from rodrigc@dibbler.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id g9702j2p004859 for freebsd-net@freebsd.org; Sun, 6 Oct 2002 20:02:45 -0400 (EDT) Date: Sun, 6 Oct 2002 20:02:45 -0400 From: Craig Rodrigues To: freebsd-net@freebsd.org Subject: Netgraph and fxp0 interface? Message-ID: <20021006200245.A4829@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 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