Rawsock bpf mambo jambo?

Bruce M Simpson bms at spc.org
Tue Jan 25 06:32:41 PST 2005


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


More information about the freebsd-hackers mailing list