From owner-freebsd-hackers Tue Mar 30 16:56:51 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.veriguard.com (relay.veriguard.com [207.5.63.61]) by hub.freebsd.org (Postfix) with ESMTP id 9A53C1506D for ; Tue, 30 Mar 1999 16:56:44 -0800 (PST) (envelope-from tomb@heliox.com) Received: by relay.veriguard.com; id IAA21974; Tue, 30 Mar 1999 08:57:25 -0800 (PST) Received: from unknown(10.5.63.100) by relay.veriguard.com via smap (4.1) id xma021972; Tue, 30 Mar 99 08:57:18 -0800 Message-ID: <37017313.6981CEE4@heliox.com> Date: Tue, 30 Mar 1999 16:57:55 -0800 From: Tom Brown X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 2.2.8-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: How do I write to the /dev/bpf0 interface? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I'm busy trying to simulate spanning tree protocol on a collection of BSD machines (2.2.8). I have configured the bpf0 interface and can noe read from it with no problems. What I need to do now is write my pre formated ethernet frame. I have tried in perl to open the device and write to it via a filehandle. I have also tried to write to it on the command line. Can anyone please tell me how to post a packet onto my LAN via this interface. Thanks in advance, Tom Brown To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message