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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Daniel Lezcano <dlezcano@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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;
 };

-- 
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux