Date: Tue, 27 Feb 2001 10:49:27 -0800 From: Julian Elischer <julian@elischer.org> To: Satyajeet Seth <sseth@sasken.com> Cc: net@freebsd.org Subject: Re: Problem in configuring netgraph Message-ID: <3A9BF6B7.703C3A3@elischer.org> References: <Pine.GSO.4.30.0102272235130.13910-100000@suns3.sasi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Satyajeet Seth wrote: > > Hi > > I tried the example at: > http://www.freebsd.org/cgi/cvsweb.cgi/src/share/man/man4/ng_bpf.4 > > When I type: > > tcpdump -ddd ether dest xx:xx:xx:xx:xx:xx > > in a telnet session the command gave the raw BPF instructions, as > expected. > > However, at the system console the same command gave the message: > > fxp0: promiscuous mode enabled > tcpdump: syntax error > xp0: promiscuous mode disabled > > Could you suggest what could be wrong? > > I also tried the following: > > 1. reboot > 2. ping -f <some machine in lan> & > 3. nghook -a fxp0: lower > Now I get identical packets. > > 4. ngctl mkpeer fxp0: bpf divert bhook > > 5. ngctl name fxp0:divert bpf0 > > 6. ngctl msg bpf0: setprogram { thisHook="bhook" ifMatch="hook2" > ifNotMatch="hook1" bpf_prog_len=1 bpf_prog=[ { code=6 } ] } > > Now all the packets are sent to hook1. > 7. nghook -a bpf0: hook1 > gives packets differing from point 3. how different? > > 8. ping to any machine on the lan does not work. > By default the upper and lower hooks of fxp0 are effectively connected. Our setup also does the > same. > > Could you suggest why the ping does not work? because the incoming packets are still being diverted to the bpf node. > > Thanks > Satya > -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v 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?3A9BF6B7.703C3A3>