summaryrefslogtreecommitdiffstats
path: root/include/net/inet_hashtables.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-03-18 14:05:34 -0700
committerDavid S. Miller <davem@davemloft.net>2015-03-18 22:00:34 -0400
commit5b441f76f1b83591e8cd9d60ba1df3a2aacde27f (patch)
tree13aff60eedcd644be5bec2bb0190ba4ccca3141e /include/net/inet_hashtables.h
parent6eada0110c8984477f5f1e57a0b7f7b2fc841e30 (diff)
downloadlinux-5b441f76f1b83591e8cd9d60ba1df3a2aacde27f.tar.gz
linux-5b441f76f1b83591e8cd9d60ba1df3a2aacde27f.tar.bz2
linux-5b441f76f1b83591e8cd9d60ba1df3a2aacde27f.zip
net: introduce sk_ehashfn() helper
Goal is to unify IPv4/IPv6 inet_hash handling, and use common helpers for all kind of sockets (full sockets, timewait and request sockets) inet_sk_ehashfn() becomes sk_ehashfn() but still only copes with IPv4 Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_hashtables.h')
-rw-r--r--include/net/inet_hashtables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/inet_hashtables.h b/include/net/inet_hashtables.h
index eb1963af0ebd..ef993ef571ea 100644
--- a/include/net/inet_hashtables.h
+++ b/include/net/inet_hashtables.h
@@ -383,6 +383,8 @@ static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo,
iph->daddr, dport, inet_iif(skb));
}
+u32 sk_ehashfn(const struct sock *sk);
+
int __inet_hash_connect(struct inet_timewait_death_row *death_row,
struct sock *sk, u32 port_offset,
int (*check_established)(struct inet_timewait_death_row *,