summaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-03-26 23:11:21 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-27 12:48:31 -0400
commit5203cd28db6dc05c3618a602cf4cf81203d00257 (patch)
tree062761308de223744f78111cbbd2ab37772a03d4 /net/packet
parente5d5decaedf41f5b03e6819789cc3ba8744d9f54 (diff)
downloadop-kernel-dev-5203cd28db6dc05c3618a602cf4cf81203d00257.zip
op-kernel-dev-5203cd28db6dc05c3618a602cf4cf81203d00257.tar.gz
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
OpenPOWER on IntegriCloud