Date: Tue, 27 Jul 1999 09:17:47 -0700 From: Darcy Buskermolen <darcy@ok-connect.com> To: freebsd-net@freebsd.org Subject: Re: writing raw ethernet packet in FreeBSD. Message-ID: <3.0.32.19990727091747.01696130@mail.ok-connect.com>
next in thread | raw e-mail | index | archive | help
Have a look at the following URL it contains examples form a rather good book on how to write raw datagrams using libpcap. http://www.kohala.com/~rstevens/unpv12e.html //DB At 11:44 AM 7/27/99 +0700, you wrote: > >I want to read & write raw ethernet packet. I can read raw ethernet >packet with bpf, but writing to bpf device is not so successful. the >ethernet source address always follow the interface's address. Is this the >normal behavior of bpf ? I am thinking that I should look at >/usr/src/sys/net/bridge.c to create raw ethernet packet ... > >My FreeBSD box is 2.2.8, my interface card is 3C509 (ep0) & ed0 (some >NE2000 compatible) > >-w- > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-net" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19990727091747.01696130>