examples: move them to contrib, since they don't belong here
[netsniff-ng.git] / contrib / examples / bpfc / arp.bpf
blob44388c4af8e745e9e8ced6597d257e42474ba10f
1 _main:
2   ldh [12]                      ; Load Ethernet type field
3   jeq #0x806, keep, drop        ; Check value against 0x806
4 keep:
5   ret #0xffffffff               ; Return packet
6 drop:
7   ret #0                        ; Discard packet