diff options
author | Jason Wang <jasowang@redhat.com> | 2013-03-26 23:11:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-27 12:48:31 -0400 |
commit | 5203cd28db6dc05c3618a602cf4cf81203d00257 (patch) | |
tree | 062761308de223744f78111cbbd2ab37772a03d4 /net/packet | |
parent | e5d5decaedf41f5b03e6819789cc3ba8744d9f54 (diff) | |
download | linux-5203cd28db6dc05c3618a602cf4cf81203d00257.tar.gz linux-5203cd28db6dc05c3618a602cf4cf81203d00257.tar.bz2 linux-5203cd28db6dc05c3618a602cf4cf81203d00257.zip |
net: core: introduce skb_probe_transport_header()
Sometimes, we need probe and set the transport header for packets (e.g from
untrusted source). This patch introduces a new helper
skb_probe_transport_header() which tries to probe and set the l4 header through
skb_flow_dissect(), if not just set the transport header to the hint passed by
caller.
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions