aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-06-16 20:12:29 -0400
committerDavid S. Miller <davem@davemloft.net>2008-06-16 20:12:29 -0400
commit19c7578fb22b0aef103222cae9b522f03ae489d6 (patch)
tree645365b1bfb70bf758633934660608be180f07f0 /net/ipv6/udp.c
parente31634931d00081c75e3fb3f3ec51a50dbf108bb (diff)
udp: add struct net argument to udp_hashfn
Every caller already has this one. The new argument is currently unused, but this will be fixed shortly. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 80fb72c48976..432edaa882f6 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -65,7 +65,7 @@ static struct sock *__udp6_lib_lookup(struct net *net,
65 int badness = -1; 65 int badness = -1;
66 66
67 read_lock(&udp_hash_lock); 67 read_lock(&udp_hash_lock);
68 sk_for_each(sk, node, &udptable[udp_hashfn(hnum)]) { 68 sk_for_each(sk, node, &udptable[udp_hashfn(net, hnum)]) {
69 struct inet_sock *inet = inet_sk(sk); 69 struct inet_sock *inet = inet_sk(sk);
70 70
71 if (net_eq(sock_net(sk), net) && sk->sk_hash == hnum && 71 if (net_eq(sock_net(sk), net) && sk->sk_hash == hnum &&
@@ -362,7 +362,7 @@ static int __udp6_lib_mcast_deliver(struct net *net, struct sk_buff *skb,
362 int dif; 362 int dif;
363 363
364 read_lock(&udp_hash_lock); 364 read_lock(&udp_hash_lock);
365 sk = sk_head(&udptable[udp_hashfn(ntohs(uh->dest))]); 365 sk = sk_head(&udptable[udp_hashfn(net, ntohs(uh->dest))]);
366 dif = inet6_iif(skb); 366 dif = inet6_iif(skb);
367 sk = udp_v6_mcast_next(sk, uh->dest, daddr, uh->source, saddr, dif); 367 sk = udp_v6_mcast_next(sk, uh->dest, daddr, uh->source, saddr, dif);
368 if (!sk) { 368 if (!sk) {