repo.or.cz
/
netsniff-ng-old.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
trafgen: moved cleanup into parser
[netsniff-ng-old.git]
/
src
/
examples
/
bpfc
/
ipv4_udp.bpf
blob
40be63d4a16e227187f6e7c86ba074633c7ccda9
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 #0x11, Keep, Drop ; Check against 0x11
5
Keep: ret #0xffffffff ; Return packet
6
Drop: ret #0 ; Discard packet