[TUHS] Re: SIMH compilation problems

Kenneth Stailey kstailey at yahoo.com
Thu Sep 4 11:46:24 AEST 2003


--- list-tuhs at cosmic.com wrote:
> On Wed,  3 Sep 2003 14:39:28 +0200 (CEST), Rico Pajarola <rp at 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.

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libpcap/pcap-bpf.c

versus:

http://www.freebsd.org/cgi/cvsweb.cgi/src/contrib/libpcap/pcap-bpf.c

http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libpcap/Attic/pcap-bpf.c

> 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 at minnie.tuhs.org
> http://minnie.tuhs.org/mailman/listinfo/tuhs


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


More information about the TUHS mailing list