Bpf: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
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]]. | 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 [[socket]]s since the code dealing with complex things such as [[IP]] fragmentation, [[routing]], etc is already provided. |
Revision as of 13:50, 8 October 2005
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.