]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
inet: add IPv6 support to sk_ehashfn()
authorEric Dumazet <edumazet@google.com>
Wed, 18 Mar 2015 21:05:35 +0000 (14:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Mar 2015 02:00:34 +0000 (22:00 -0400)
commitd1e559d0b1b0d02f76a6bd5b768a99dc834ae926
tree283048c1921aeec1c2dfb25e72e6e67cddffcb23
parent5b441f76f1b83591e8cd9d60ba1df3a2aacde27f
inet: add IPv6 support to sk_ehashfn()

Intent is to converge IPv4 & IPv6 inet_hash functions to
factorize code.

IPv4 sockets initialize sk_rcv_saddr and sk_v6_daddr
in this patch, thanks to new sk_daddr_set() and sk_rcv_saddr_set()
helpers.

__inet6_hash can now use sk_ehashfn() instead of a private
inet6_sk_ehashfn() and will simply use __inet_hash() in a
following patch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
net/dccp/ipv4.c
net/dccp/ipv6.c
net/ipv4/inet_hashtables.c
net/ipv4/tcp_ipv4.c
net/ipv6/inet6_hashtables.c
net/ipv6/tcp_ipv6.c