Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Feb 1999 16:37:36 -0800
From:      Julian Elischer <julian@whistle.com>
To:        net@FreeBSD.ORG
Subject:   netgraph ethernet hook
Message-ID:  <36B648D0.FF6D5DF@whistle.com>

next in thread | raw e-mail | index | archive | help
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 <peerhook> of the node at <relpath> to <hook>
  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 <name> to the node at <path>
  read       Read and execute commands from a file
  rmhook     Disconnect hook "hook" of the node at "path"
  show       Show information about the node at <path>
  shutdown   Shutdown the node at <path>
  status     Get human readable status information from the node at
<path>
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36B648D0.FF6D5DF>