From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 25 14:32:41 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 57C6716A4CE for ; Tue, 25 Jan 2005 14:32:41 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BD0743D3F for ; Tue, 25 Jan 2005 14:32:40 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id DC89465375; Tue, 25 Jan 2005 14:32:38 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17833-01-10; Tue, 25 Jan 2005 14:32:38 +0000 (GMT) Received: from empiric.dek.spc.org (unknown [213.210.24.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 089236530A; Tue, 25 Jan 2005 14:32:38 +0000 (GMT) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id D811F6383; Tue, 25 Jan 2005 14:33:50 +0000 (GMT) Date: Tue, 25 Jan 2005 14:33:50 +0000 From: Bruce M Simpson To: DJF Message-ID: <20050125143350.GI47638@dhcp120.icir.org> Mail-Followup-To: DJF , freebsd-hackers@freebsd.org References: <20050125094646.GA969@nexus.hta.fhz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050125094646.GA969@nexus.hta.fhz.ch> 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 14:32:41 -0000 On Tue, Jan 25, 2005 at 10:46:47AM +0100, DJF wrote: > What's the advantage in using the rawsock bpf combination instead of > bpf (or raw socket) only? Raw IP sockets for write take care of the following for you: 1) Computing IP checksums. 2) Inserting IP options. BPF does neither of those things. For a while BPF was read-only, but it has been read-write capable for quite some time. BMS