From owner-freebsd-hackers Fri Nov 14 08:33:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA11151 for hackers-outgoing; Fri, 14 Nov 1997 08:33:39 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from echonyc.com (echonyc.com [198.67.15.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA11146 for ; Fri, 14 Nov 1997 08:33:35 -0800 (PST) (envelope-from benedict@echonyc.com) Received: from localhost (benedict@localhost) by echonyc.com (8.8.7/8.8.7) with SMTP id LAA16295; Fri, 14 Nov 1997 11:33:22 -0500 (EST) Date: Fri, 14 Nov 1997 11:33:22 -0500 (EST) From: Snob Art Genre To: Dag-Erling Coidan Smørgrav cc: hackers@FreeBSD.ORG Subject: Re: Ethernet packet generation In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.freebsd.org id IAA11147 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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. 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."