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