On Wed, 3 Sep 2003 14:39:28 +0200 (CEST), Rico
Pajarola <rp(a)servium.ch>
wrote:
on FreeBSD you can't send packets directly over bpf (at least not
the same way you can on Net-/OpenBSD).
FreeBSD certainly does let you send packets over bpf. If you open the
device (e.g. /dev/bpf0) for both reading and writing, you can write()
a buffer to the device, and the contents of that buffer will be sent
verbatim from that device. I do this all the time for protocol
testing.
It's actually the pcap library not the bpf driver that can't write in FreeBSD
but can in NetBSD.
I'm not running NetBSD or OpenBSD currently, so
perhaps they support a
richer interface than FreeBSD does, but the essentials are indeed
there.
--Mirian
_______________________________________________
TUHS mailing list
TUHS(a)minnie.tuhs.org
http://minnie.tuhs.org/mailman/listinfo/tuhs
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software