aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Haley <brian.haley@hp.com>2009-11-09 07:05:53 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-10 23:54:44 -0500
commit856540ee3116ac04a49bc06c2f30f54dd3faf7db (patch)
tree842262f8d70efbc0ca73988370494a08bd52acad
parent246c65add098a5ec14310ea17f39fdd57ff8407d (diff)
IPv6: use ipv6_addr_v4mapped()
Change udp6_portaddr_hash() to use ipv6_addr_v4mapped() inline instead of ipv6_addr_type(). Signed-off-by: Brian Haley <brian.haley@hp.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv6/udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index f4c85b200051..69ebdbe78c47 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -89,7 +89,7 @@ static unsigned int udp6_portaddr_hash(struct net *net,
89 89
90 if (ipv6_addr_any(addr6)) 90 if (ipv6_addr_any(addr6))
91 hash = jhash_1word(0, mix); 91 hash = jhash_1word(0, mix);
92 else if (ipv6_addr_type(addr6) == IPV6_ADDR_MAPPED) 92 else if (ipv6_addr_v4mapped(addr6))
93 hash = jhash_1word(addr6->s6_addr32[3], mix); 93 hash = jhash_1word(addr6->s6_addr32[3], mix);
94 else 94 else
95 hash = jhash2(addr6->s6_addr32, 4, mix); 95 hash = jhash2(addr6->s6_addr32, 4, mix);