From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 25 09:46:50 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 17CAB16A4CE for ; Tue, 25 Jan 2005 09:46:50 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id D3F9943D1F for ; Tue, 25 Jan 2005 09:46:48 +0000 (GMT) (envelope-from djf@gmx.ch) Received: (qmail invoked by alias); 25 Jan 2005 09:46:47 -0000 Received: from unknown (EHLO localhost) (147.88.105.91) by mail.gmx.net (mp018) with SMTP; 25 Jan 2005 10:46:47 +0100 X-Authenticated: #2052246 Date: Tue, 25 Jan 2005 10:46:47 +0100 From: DJF To: freebsd-hackers@freebsd.org Message-ID: <20050125094646.GA969@nexus.hta.fhz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Editor: Vim 6.2 http://www.vim.org/ X-Mailer: Mutt 1.5.6i http://www.mutt.org/ X-Operating-System: FreeBSD 5.3 http://www.freebsd.org/ X-Y-GMX-Trusted: 0 X-Mailman-Approved-At: Tue, 25 Jan 2005 13:11:06 +0000 Subject: 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 09:46:50 -0000 Hi everybody, I've recently been looking into raw socket programming. However there's still a question that remains. Maybe it's just a case of RTFM, if so point me to a good manual on the topic. The man pages indicate that you can do read and write operations with rawsock aswell as bpf. However, in all of the source codes I found, a raw socket was used to write to, and bpf was used to read from the interface. What's the advantage in using the rawsock bpf combination instead of bpf (or raw socket) only? Thx in advance, dave -- Encrypt your emails! My PGPkeyID: 0xA37C182D _ ( ) ASCII Ribbon Campaign against X HTML mail and news / \