Date: Wed, 31 Mar 1999 10:23:46 -0500 (EST) From: Christopher Sedore <cmsedore@mailbox.syr.edu> To: Graham Wheeler <gram@cdsec.com> Cc: Tom Brown <tomb@heliox.com>, hackers@FreeBSD.ORG Subject: Re: How do I write to the /dev/bpf0 interface? Message-ID: <Pine.SOL.3.95.990331102218.7245A-100000@rodan.syr.edu> In-Reply-To: <3701D495.1857BF9D@cdsec.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 31 Mar 1999, Graham Wheeler wrote: > Tom Brown wrote: > > > Can anyone please tell me how to post a packet onto my LAN via this > > interface. > > You should just be able to write the frame. Make sure everything is in > network-byte order. You needn't put in a source Ethernet address as that > will get filled in, but you do need to put in a destination. Note that this is probably a bug in the bpf implementation. BPF/the kernel shouldn't be messing with the packet on a write to a bpf descriptor. I've filed a bug report (with patch) that addresses this. -Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.95.990331102218.7245A-100000>