blob: 9fa3f48260a3d69e0f1bbfe451e757eb8ce7e447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Index: vserver-sources-2.1.1_2.6.16/net/ipv4/udp.c
===================================================================
--- vserver-sources-2.1.1_2.6.16.orig/net/ipv4/udp.c
+++ vserver-sources-2.1.1_2.6.16/net/ipv4/udp.c
@@ -216,16 +216,6 @@ static void udp_v4_unhash(struct sock *s
write_unlock_bh(&udp_hash_lock);
}
-static inline int udp_in_list(struct nx_info *nx_info, u32 addr)
-{
- int n = nx_info->nbipv4;
- int i;
-
- for (i=0; i<n; i++)
- if (nx_info->ipv4[i] == addr)
- return 1;
- return 0;
-}
/* UDP is nearly always wildcards out the wazoo, it makes no sense to try
* harder than this. -DaveM
@@ -248,7 +238,7 @@ static struct sock *udp_v4_lookup_longwa
continue;
score+=2;
} else if (sk->sk_nx_info) {
- if (udp_in_list(sk->sk_nx_info, daddr))
+ if (addr_in_nx_info(sk->sk_nx_info, daddr))
score+=2;
else
continue;
|