summaryrefslogtreecommitdiffstats
path: root/include/net/flow_keys.h
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2013-10-02 13:39:24 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-03 21:36:37 +0200
commit357afe9c46c951c34769e39cabdf8d1637e2eecc (patch)
tree4313ee038c1557c1aa36ec594a0aa20e545ca2df /include/net/flow_keys.h
parentinet: consolidate INET_TW_MATCH (diff)
downloadlinux-357afe9c46c951c34769e39cabdf8d1637e2eecc.tar.xz
linux-357afe9c46c951c34769e39cabdf8d1637e2eecc.zip
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.h1
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 {
};
bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow);
+__be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto);
#endif