diff options
author | Nikolay Aleksandrov <nikolay@redhat.com> | 2013-10-02 07:39:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-03 15:36:37 -0400 |
commit | 357afe9c46c951c34769e39cabdf8d1637e2eecc (patch) | |
tree | 4313ee038c1557c1aa36ec594a0aa20e545ca2df /include/net/flow_keys.h | |
parent | 5080546682bae3d32734b18e281091684f0ebbe4 (diff) |
flow_dissector: factor out the ports extraction in skb_flow_get_ports
Factor out the code that extracts the ports from skb_flow_dissect and
add a new function skb_flow_get_ports which can be re-used.
Suggested-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow_keys.h')
-rw-r--r-- | include/net/flow_keys.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/flow_keys.h b/include/net/flow_keys.h index ac2439d02f54..7e64bd8bbda9 100644 --- a/include/net/flow_keys.h +++ b/include/net/flow_keys.h | |||
@@ -14,4 +14,5 @@ struct flow_keys { | |||
14 | }; | 14 | }; |
15 | 15 | ||
16 | bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow); | 16 | bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow); |
17 | __be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto); | ||
17 | #endif | 18 | #endif |