How to test my own netgraph node ?

Harti Brandt brandt at fokus.fraunhofer.de
Tue Mar 16 10:27:39 PST 2004


On Tue, 16 Mar 2004, [iso-8859-1] manish gautam wrote:

mg>
mg>Hi sir...
mg>
mg>I have modified ng_tee.c to design my own netgraph
mg>node. But i dont know how to test that it is working.
mg>
mg>1.Tell me the right procedure to test it.
mg>
mg>2.How can i pass incoming packet through it ?
mg>
mg>3.How can i print incoming packet info on prompt ?

That heavily depends on what your node does. You may want to have a
look at nghook(8). You may put it on top of other nodes that emit traffic
(ng_ether).

harti


More information about the freebsd-net mailing list