Date: Wed, 24 Dec 2008 16:06:47 -0800 From: Julian Elischer <julian@elischer.org> To: gnn@freebsd.org Cc: net@freebsd.org Subject: Re: A new tool for low level testing... Message-ID: <4952CE97.3010506@elischer.org> In-Reply-To: <7i63l9r33o.wl%gnn@neville-neil.com> References: <7ihc4u3adr.wl%gnn@neville-neil.com> <4951515C.4030706@elischer.org> <7i63l9r33o.wl%gnn@neville-neil.com>
next in thread | previous in thread | raw e-mail | index | archive | help
gnn@freebsd.org wrote: > At Tue, 23 Dec 2008 13:00:12 -0800, > julian wrote: >> gnn@freebsd.org wrote: >>> Hi, >>> >>> I just checked in a small tool to HEAD in >>> /usr/src/tools/tools/ether_reflect which uses pcap and bpf to reflect >>> ethernet packets just about the driver layer without involving the >>> protocol stacks. This is useful for people doing low level testing of >>> drivers and switches. If you happen to be lucky enough to have an >>> ethernet packet generator (ixia et al) this will do what you want in >>> terms of reflecting the packets back. >>> >>> Later, >>> George >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >> OR >> >> ngctl mkpeer em0: echo lower echo >> >> >> hmmmmm no this would leave the source and destination headers in hte >> same order.. they need to be swapped.. >> >> ok so I need to make a patch, but it would be much quicker than a user >> utility.. > > I agree that netgraph is the right long term answer. I look forward > to what you come up with. I just checked in ng_ether_echo seems to work for me... reflects any received packet back at the source address. cd /usr/src/sys/modules/netgraph/ether_echo make make install kldload ng_ether kldload ng_ether_echo ngctl mkpeer em0: ether_echo lower echo should work for 7 and 6 without any change. it's not hooked to the build yet but I'll do that when ive seen ot loop back into my system via the mirrors.. > > Also, +1 to an improved set of docs on netgraph. for all my spare time.. :-) > > Later, > George
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4952CE97.3010506>