Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2005 10:46:47 +0100
From:      DJF <deiif@yahoo.com>
To:        freebsd-hackers@freebsd.org
Subject:   Rawsock bpf mambo jambo?
Message-ID:  <20050125094646.GA969@nexus.hta.fhz.ch>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050125094646.GA969>