summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vserver-sources/old/2.1.1_rc16-r2/4416_vs2.1.1-rc16-udpaddr-fix01.patch')
-rw-r--r--vserver-sources/old/2.1.1_rc16-r2/4416_vs2.1.1-rc16-udpaddr-fix01.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/vserver-sources/old/2.1.1_rc16-r2/4416_vs2.1.1-rc16-udpaddr-fix01.patch b/vserver-sources/old/2.1.1_rc16-r2/4416_vs2.1.1-rc16-udpaddr-fix01.patch
new file mode 100644
index 0000000..9fa3f48
--- /dev/null
+++ b/vserver-sources/old/2.1.1_rc16-r2/4416_vs2.1.1-rc16-udpaddr-fix01.patch
@@ -0,0 +1,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;