Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Sep 1997 15:30:48 -0400 (EDT)
From:      Brian Mitchell <brian@firehouse.net>
To:        Sunthiti Patchararungruang <stt@pluto.cpe.ku.ac.th>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Need Help about BPF
Message-ID:  <Pine.BSI.3.95.970913152933.23560A-100000@shell.firehouse.net>
In-Reply-To: <Pine.BSF.3.96.970914011256.20311A-100000@pluto.cpe.ku.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.970913152933.23560A-100000>