From owner-freebsd-net Mon Feb 1 16:42:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA14263 for freebsd-net-outgoing; Mon, 1 Feb 1999 16:42:06 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA14243 for ; Mon, 1 Feb 1999 16:42:02 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id QAA23073 for ; Mon, 1 Feb 1999 16:37:47 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdi23065; Tue Feb 2 00:37:39 1999 Message-ID: <36B648D0.FF6D5DF@whistle.com> Date: Mon, 01 Feb 1999 16:37:36 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: net@FreeBSD.ORG Subject: netgraph ethernet hook Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Just a note to those that have been following the netgraph story: I just got the netgraph/ethernet connection going. (there was a small bug in the version sent out..) major cool.. using the "orphans" hook, any unclained packets are sent to netgraph system, wher they can be sliced and diced to taste. If I can get the DPF node running then this will support dynamic addition of protocols. A less flexible method would be to create a node for each protocol that filters out packets it recognises and passes the rest on. This could certainly be used to prototype things. An example of running on the "orphans" hook with appletalk not enabled while apples are on the network.. [phaser.whistle.com] 512 ngctl Available commands: connect Connects hook of the node at to debug Get/set debugging verbosity level help Show command summary or get more help on a specific command list Show information about all nodes mkpeer Create and connect a new node to the node at "path" name Assign name to the node at read Read and execute commands from a file rmhook Disconnect hook "hook" of the node at "path" show Show information about the node at shutdown Shutdown the node at status Get human readable status information from the node at types Show information about all installed node types quit Exit program + list There are 2 total nodes: Name: ngctl326 Type: socket ID: f07ba180 Num hooks: 0 Name: fxp0 Type: ether ID: f0756d80 Num hooks: 0 + quit [phaser.whistle.com] 513 nghook -a fxp0: orphans 0000: 09 00 07 ff ff ff 00 10 4b 30 64 48 00 22 aa aa ........K0dH.".. 0010: 03 08 00 07 80 9b 00 1a 00 00 00 00 00 66 ff fb .............f.. 0020: 01 01 01 00 66 08 fb 00 64 80 00 6e 82 00 6f 00 ....f...d..n..o. 0030: cd cd cd cd cd cd cd cd cd cd cd cd ............ 0000: 09 00 07 ff ff ff 00 00 c5 22 a8 2e 00 25 aa aa ........."...%.. 0010: 03 08 00 07 80 9b 00 1d 00 00 00 00 00 64 ff 7f .............d.. 0020: 01 01 01 00 64 08 7f 00 64 80 00 6e 82 00 6f 80 ....d...d..n..o. 0030: 00 6f 82 00 00 00 00 00 00 00 00 00 .o.......... ^C [phaser.whistle.com] 514 I had fxp0 in promiscuous mode so I would get some orphans. Patch available on request, or it will be in the next netgraph release. julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message