Bpf

From Hackepedia
Revision as of 13:50, 8 October 2005 by Pbug (talk | contribs)
Jump to navigationJump to search

BPF is the Berkeley Packet Filter. It allows inspection and injection of OSI layer 2 frames. Typical implementations using BPF are pppoe, dhcpd and tcpdump. For layers 3 and above it's wise to use sockets since the code dealing with complex things such as IP fragmentation, routing, etc is already provided.