On Wed, Oct 11, 2006 at 01:02:50PM -0300, Eduardo Meyer wrote: > >> ngctl msg my_node: setprogram { thisHook="hook1" ifMatch="hook2" > >> ifNotMatch="hook3" bpf_prog_len=16 bpf_prog=[ { code=40 jt=0 jf=0 k=12 > >> } { code=21 jt=0 jf=4 k=34525 } { code=48 jt=0 jf=0 k=20 } { code=21 > >> jt=0 jf=11 k=6 } { code=40 jt=0 jf=0 k=56 } { code=21 jt=8 jf=9 k=80 } > >> { code=21 jt=0 jf=8 k=2048 } { code=48 jt=0 jf=0 k=23 } { code=21 jt=0 > >> jf=6 k=6 } { code=40 jt=0 jf=0 k=20 } { code=69 jt=4 jf=0 k=8191 } { > >> code=177 jt=0 jf=0 k=14 } { code=72 jt=0 jf=0 k=16 } { code=21 jt=0 > >> jf=1 k=80 } { code=6 jt=0 jf=0 k=8192 } { code=6 jt=0 jf=0 k=0 } ] } } > >> > >> How should I create "my_node" before? > > > >Absolutely. > > Absolutely what? I meant "how should I create", say "how to create" my > node. The man page does not mentions anything about it.
Sorry, I've misread your question. Take a look at /usr/ports/net-mgmt/ng_ipacct/files/ng_ipacct.conf. There is a working example of NETGRAPH web using ng_bpf and a set of commands that builds it. Search for 'EXAMPLE 4' there and 'ng_ipacct_bpf_ether_start' above the example. You may read some generic documentation about netgraph also, it does not hurt :-) Eugene Grosbein _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"