diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-03-19 06:39:30 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 13:15:45 -0400 |
commit | f77668dc25b27270fe589031b22c432c3462b1d8 (patch) | |
tree | 99e8e81cccb347d42d0edf2a72715b2dc0796a89 /net/ipv6/esp6.c | |
parent | 61816596d1c9026d0ecb20c44f90452c41596ffe (diff) | |
download | blackbird-op-linux-f77668dc25b27270fe589031b22c432c3462b1d8.tar.gz blackbird-op-linux-f77668dc25b27270fe589031b22c432c3462b1d8.zip |
net: flow_dissector: add __skb_get_poff to get a start offset to payload
__skb_get_poff() returns the offset to the payload as far as it could
be dissected. The main user is currently BPF, so that we can dynamically
truncate packets without needing to push actual payload to the user
space and instead can analyze headers only.
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/esp6.c')
0 files changed, 0 insertions, 0 deletions