From mboxrd@z Thu Jan 1 00:00:00 1970 From: kstailey@yahoo.com (Kenneth Stailey) Date: Wed, 3 Sep 2003 18:46:24 -0700 (PDT) Subject: [TUHS] Re: SIMH compilation problems In-Reply-To: Message-ID: <20030904014624.45815.qmail@web10002.mail.yahoo.com> --- list-tuhs at cosmic.com wrote: > On Wed, 3 Sep 2003 14:39:28 +0200 (CEST), Rico Pajarola > 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