From owner-freebsd-net Tue Jul 27 9:15:49 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.dbitech.bc.ca (i.caniserv.com [139.142.95.1]) by hub.freebsd.org (Postfix) with SMTP id F122E14DAE for ; Tue, 27 Jul 1999 09:15:37 -0700 (PDT) (envelope-from darcy@ok-connect.com) Received: (qmail 24499 invoked from network); 27 Jul 1999 16:29:25 -0000 Received: from ccliii.caniserv.com (HELO dbitech) (darcyb@139.142.95.253) by 139.142.95.10 with SMTP; 27 Jul 1999 16:29:25 -0000 Message-Id: <3.0.32.19990727091747.01696130@mail.ok-connect.com> X-Sender: darcyb@mail.ok-connect.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Tue, 27 Jul 1999 09:17:47 -0700 To: freebsd-net@freebsd.org From: Darcy Buskermolen Subject: Re: writing raw ethernet packet in FreeBSD. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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