From owner-freebsd-hackers Fri Nov 14 05:31:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA28040 for hackers-outgoing; Fri, 14 Nov 1997 05:31:09 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA28029 for ; Fri, 14 Nov 1997 05:31:06 -0800 (PST) (envelope-from dag-erli@ifi.uio.no) Received: from hridil.ifi.uio.no (2602@hridil.ifi.uio.no [129.240.64.48]) by ifi.uio.no (8.8.7/8.8.7/ifi0.2) with ESMTP id OAA08053 for ; Fri, 14 Nov 1997 14:31:02 +0100 (MET) Received: (from dag-erli@localhost) by hridil.ifi.uio.no ; Fri, 14 Nov 1997 14:31:01 +0100 (MET) To: hackers@FreeBSD.ORG Subject: Re: Ethernet packet generation References: Organization: Folkerørsla Mot Knut Yrvin X-url: http://www.ifi.uio.no/~dag-erli/ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit From: dag-erli@ifi.uio.no (Dag-Erling Coidan Smørgrav) Date: 14 Nov 1997 14:30:59 +0100 In-Reply-To: Curt Sampson's message of Tue, 11 Nov 1997 17:30:00 -0800 (PST) Message-ID: Lines: 14 X-Mailer: Gnus v5.3/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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"