diff options
author | Jason Wang <[email protected]> | 2013-03-26 23:11:21 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-03-27 12:48:31 -0400 |
commit | 5203cd28db6dc05c3618a602cf4cf81203d00257 (patch) | |
tree | 062761308de223744f78111cbbd2ab37772a03d4 /drivers/net/xen-netback/netback.c | |
parent | e5d5decaedf41f5b03e6819789cc3ba8744d9f54 (diff) |
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 <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/netback.c')
0 files changed, 0 insertions, 0 deletions