From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 25 15:35:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E04D16A4CE for ; Tue, 25 Jan 2005 15:35:04 +0000 (GMT) Received: from smtpx.spintech.ro (smtpx.spintech.ro [81.181.24.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9703E43D5D for ; Tue, 25 Jan 2005 15:35:04 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from smtpx.spintech.ro (antivirus [15.0.0.1]) by smtpx.spintech.ro (Postfix) with ESMTP id 804D73AB0B; Tue, 25 Jan 2005 14:17:33 +0000 (UTC) Received: from [10.0.0.2] (beastie [10.0.0.2]) by smtpx.spintech.ro (Postfix) with ESMTP id 4C1873A4F2; Tue, 25 Jan 2005 14:17:33 +0000 (UTC) Message-ID: <41F66763.6090105@spintech.ro> Date: Tue, 25 Jan 2005 17:36:03 +0200 From: Alin-Adrian Anton User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: DJF References: <20050125094646.GA969@nexus.hta.fhz.ch> In-Reply-To: <20050125094646.GA969@nexus.hta.fhz.ch> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Open-Source: www.opensource.org cc: freebsd-hackers@freebsd.org Subject: Re: Rawsock bpf mambo jambo? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 15:35:05 -0000 And as it has already been said, BPF looks at a lower level than raw sockets. With raw sockets, you are still bound to using IP packets (even if you intentionally create bogus ones). They will be encapsulated in ethernet packets, when the link goes out via ethernet. BPF can be used to read/write ethernet packets too, for example, while raw_sockets cannot. -- Alin-Adrian Anton GPG keyID 0x1E2FFF2E (2963 0C11 1AF1 96F6 0030 6EE9 D323 639D 1E2F FF2E) gpg --keyserver pgp.mit.edu --recv-keys 1E2FFF2E Never ask a man what OS he uses. If it's a BSD, he'll tell you. If it's not, why embarrass him? ..I'm sorry..