From owner-freebsd-hackers Fri Nov 14 09:39:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA16908 for hackers-outgoing; Fri, 14 Nov 1997 09:39:37 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA16900 for ; Fri, 14 Nov 1997 09:39:29 -0800 (PST) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.7/8.8.5) with SMTP id LAA28723; Fri, 14 Nov 1997 11:35:30 -0500 (EST) X-Authentication-Warning: picnic.mat.net: chuckr owned process doing -bs Date: Fri, 14 Nov 1997 11:35:30 -0500 (EST) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: Snob Art Genre cc: =?iso-8859-1?Q?Dag-Erling_Coidan_Sm=F8rgrav?= , hackers@FreeBSD.ORG Subject: Re: Ethernet packet generation In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.freebsd.org id JAA16903 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, 14 Nov 1997, Snob Art Genre wrote: > I think the book you want is _Unix Network Programming_, by W. Richard > Stevens. I have a copy on order, when it arrives I'll see if it has BPF > stuff. But chances are it does. Doesn't, but recommending that book will _never_ get you in trouble. It will show you enough network programming to where you can just read the bpf man page and use that. > > On 14 Nov 1997, Dag-Erling Coidan Smørgrav wrote: > > > Curt Sampson writes: > > > On Tue, 11 Nov 1997, Michael Knoll wrote: > > > > Is there a way to generate an ethernet packet, with an unsupported protocol > > > > through a user level program? > > > Yes. Use bpf. > > > > On a related subject, is there documentation available on how to > > program BPF under FreeBSD or other BSD unices? I think I've mostly > > figured it out from reading tcpdump and trafshow source as well as the > > Usenix'93 BPF paper, but I'd still like docs. > > > > -- > > * Finrod (INTJ) * Unix weenie * dag-erli@ifi.uio.no * cellular +47-92835919 * > > RFC1123: "Be liberal in what you accept, and conservative in what you send" > > > > > > Ben > > "You have your mind on computers, it seems." > > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------