examples: move them to contrib, since they don't belong here
[netsniff-ng.git] / contrib / examples / bpfc / ipv4.bpf
blobf8e6e908b32bd07927548d08e916b105b7d9c040
1 ldh [12]                ; Load Ethernet type field
2 jeq #0x800, Keep, Drop  ; Check value against 0x800
3 Keep: ret #0xffffffff   ; Return packet
4 Drop: ret #0            ; Discard packet