diff options
author | Josef Bacik <jbacik@fb.com> | 2017-01-17 18:51:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-18 21:04:28 +0300 |
commit | fe38d2a1c8bee0b3a0be40de5b621a28200612e5 (patch) | |
tree | 92321ea6c293c9cd282bb7930e860885bbe96419 /net/ipv6/udp.c | |
parent | ab70e5862670177d207ea0e0e16454e4083a5ad5 (diff) | |
download | linux-fe38d2a1c8bee0b3a0be40de5b621a28200612e5.tar.xz |
inet: collapse ipv4/v6 rcv_saddr_equal functions into one
We pass these per-protocol equal functions around in various places, but
we can just have one function that checks the sk->sk_family and then do
the right comparison function. I've also changed the ipv4 version to
not cast to inet_sock since it is unneeded.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 4d5c4eee4b3f..05d69324862e 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -103,7 +103,7 @@ int udp_v6_get_port(struct sock *sk, unsigned short snum) /* precompute partial secondary hash */ udp_sk(sk)->udp_portaddr_hash = hash2_partial; - return udp_lib_get_port(sk, snum, ipv6_rcv_saddr_equal, hash2_nulladdr); + return udp_lib_get_port(sk, snum, hash2_nulladdr); } static void udp_v6_rehash(struct sock *sk) |