]> git.baikalelectronics.ru Git - kernel.git/commit
net: flow_dissector: add __skb_get_poff to get a start offset to payload
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 19 Mar 2013 06:39:30 +0000 (06:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 17:15:45 +0000 (13:15 -0400)
commitc08009300c7a95cb4fe7fb6952df3f5dcda19e5b
tree99e8e81cccb347d42d0edf2a72715b2dc0796a89
parent3dee054dd2f305f0204911f8e5802e85b30ec583
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>
include/linux/skbuff.h
net/core/flow_dissector.c