[NETNS45][patch 1/1] remove udp rover port

dlezcano at fr.ibm.com dlezcano at fr.ibm.com
Fri Sep 14 08:48:21 PDT 2007


From: Daniel Lezcano <dlezcano at fr.ibm.com>

in net-2.6.24, the algorithm which choose a port is changed. The rover
port is no longer a global static variable, it is computed dynamically
with net_random, each time a get_port call is done.

So no need to have it in the network namespace

Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>
---
 include/net/net_namespace.h |    3 ---
 1 file changed, 3 deletions(-)

Index: linux-2.6-netns/include/net/net_namespace.h
===================================================================
--- linux-2.6-netns.orig/include/net/net_namespace.h
+++ linux-2.6-netns/include/net/net_namespace.h
@@ -138,9 +138,6 @@ struct net {
 	atomic_t		ip_frag_mem;
 	struct timer_list	ipfrag_secret_timer;
 
-	/* udp.c */
-	int			udp_port_rover;
-
 	/* iptable_filter.c */
 	struct xt_table		*ip_packet_filter;
 };

-- 


More information about the Containers mailing list