bpfc: filter: add poff ancillary operation
commitceae98914962e4375a98db2622b65ecf44b0232a
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 19 Mar 2013 15:36:10 +0000 (19 16:36 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Tue, 19 Mar 2013 15:36:10 +0000 (19 16:36 +0100)
tree1560778e9ea194247c1cec6d827dde882a860b58
parente4c98bb91e35dba56a077e8e5b9c70556fdd4e24
bpfc: filter: add poff ancillary operation

In preparation for [1], add the #poff operation, so that users can
dynamically truncate packets on the payload start offset. This is
useful for several reasons: privacy, speed, ...

Example for bpfc:

  ld #poff
  ret a

  [1] http://thread.gmane.org/gmane.linux.network/262512

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
bpf.h
bpf_lexer.l
bpf_parser.y