From owner-freebsd-hackers Sat Sep 13 12:33:40 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA22034 for hackers-outgoing; Sat, 13 Sep 1997 12:33:40 -0700 (PDT) Received: from shell.firehouse.net (brian@shell.firehouse.net [209.42.203.45]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA22029 for ; Sat, 13 Sep 1997 12:33:36 -0700 (PDT) Received: from localhost (brian@localhost) by shell.firehouse.net (8.8.5/8.8.5) with SMTP id PAA23569; Sat, 13 Sep 1997 15:30:51 -0400 (EDT) Date: Sat, 13 Sep 1997 15:30:48 -0400 (EDT) From: Brian Mitchell To: Sunthiti Patchararungruang cc: hackers@FreeBSD.ORG Subject: Re: Need Help about BPF In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, 14 Sep 1997, Sunthiti Patchararungruang wrote: > Dear Sir, > > I am a master student. My thesis is in the topic of computer > network. I need to know that if I has a complete IP packet, already > encapsulated with IP header, and I would like to send it to a specified > interface, how can I do that. However, my IP packet does not have any > information about Datalink layer address. Do I need to manage the address > by myself. man ip, I would probably use a raw socket > > Someone in FreeBsd.org told me that I should use BPF. I rarely > have the document about it, only have BPF(4) man-page and BPF data in > ftp.ee.lbl.gov. If you also recommend BPF, please tell me where I can find > the information about it. if you use bpf, just write the segment. You need datalink layer too, in the case of bpf.