Re: Netgraph - ng_bpf help (first experience)

2006-10-11 Thread Eugene Grosbein
On Wed, Oct 11, 2006 at 12:12:06PM -0300, Eduardo Meyer wrote: ngctl: send msg: No such file or directory Exit 71 Same problem. With ngctl list the only node I see is: There are 1 total nodes: Name: ngctl19792 Type: socket ID: 003f Num hooks: 0 You do not

Re: Netgraph - ng_bpf help (first experience)

2006-10-11 Thread Eduardo Meyer
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

Re: Netgraph - ng_bpf help (first experience)

2006-10-11 Thread Alexey Karagodov
is there a need in ng_ether module? On 10/11/06, Eduardo Meyer [EMAIL PROTECTED] 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

Re: Netgraph - ng_bpf help (first experience)

2006-10-11 Thread Eugene Grosbein
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

Netgraph - ng_bpf help (first experience)

2006-10-10 Thread Eduardo Meyer
Hello, I tried asking it on freebsd-ipfw@ but I got no luck. Maybe because this is related to Netgraph and not ipfw essentially. I want to use ng_bpf to use ng_tag to use ipfw-tag. Looks like lego, where I have to assemble my toy, but I liked Lego when I was a child. Following ng_bpf(4) man

Re: Netgraph - ng_bpf help (first experience)

2006-10-10 Thread pete wright
On 10/10/06, Eduardo Meyer [EMAIL PROTECTED] wrote: Hello, I tried asking it on freebsd-ipfw@ but I got no luck. Maybe because this is related to Netgraph and not ipfw essentially. I want to use ng_bpf to use ng_tag to use ipfw-tag. Looks like lego, where I have to assemble my toy, but I liked

Re: Netgraph - ng_bpf help (first experience)

2006-10-10 Thread Eduardo Meyer
New try, now by hand: # ngctl msg dcbpf: setprogram { thisHook=ipfw ifMatch=matched ifNotMatch=ipfw bpf_prog_len=8 bpf_prog=[ { code=32 jt=0 jf=0 k=40 } { code=21 jt=0 jf=5 k=323901508 } { code=32 jt=0 jf=0 k=44 } { code=21 jt=0 jf=3 k=1869439337 } { code=32 jt=0 jf=0 k=48 } { code=21 jt=0 jf=1

Re: Netgraph - ng_bpf help (first experience)

2006-10-10 Thread Eduardo Meyer
Pete, thank you for asking. are you sure you are able to write to /tmp, this error looks like it is not able to read /tmp/bpf.awk. Yes, I can write. It is not the problem, since the generated code from the awk file is OK. I printed the full commands that returns the error, it is: ngctl