Re: ipv4: net namespace does not inherit network configurations

2014-10-13 Thread zhuyj
Hi, Miller && Cong Can we merge this patch into kernel mainline? since the independence between ipv4 and ipv6 is inconsistent even in the latest linux kernel(3.17-rc7), that is, the net namespace is independent in ipv6 while it is not in ipv4. Thanks a lot. Zhu Yanjun On 07/30/2014 01:48 AM,

Re: [PATCH V2 0/1] ipv4: net namespace does not inherit network configurations

2014-08-20 Thread Stephen Hemminger
onship between the net namespaces. So the behavior > of ipv4 is not correct. > > Based on this patch [ipv6: fix bad free of addrconf_init_net], I made > a new patch to fix this problem on ipv4. > > Any reply is appreciated. > > Zhu Yanjun

[PATCH V2 0/1] ipv4: net namespace does not inherit network configurations

2014-08-20 Thread Zhu Yanjun
x this problem on ipv4. Any reply is appreciated. Zhu Yanjun (1): ipv4: net namespace does not inherit network configurations net/ipv4/devinet.c | 29 - 1 file changed, 12 insertions(+), 17 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "

[PATCH 1/1] ipv4: net namespace does not inherit network configurations

2014-08-20 Thread Zhu Yanjun
Ipv4 net namespace requires a similar logic change as commit c900a800 [ipv6: fix bad free of addrconf_init_net] introduces for newer kernels. Since a net namespace is independent to another. That is, there is no any relationship between the net namespaces. So a new net namespace should not inherit

Re: ipv4: net namespace does not inherit network configurations

2014-07-30 Thread zhuyj
On 07/30/2014 01:48 AM, Cong Wang wrote: On Tue, Jul 29, 2014 at 2:29 AM, zhuyj wrote: Hi,all I did a test on kernel3.16 rc6: root@qemu1:~# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding root@qemu1:~# echo 1 > /proc/sys/net/ipv4/conf/all/forwarding root@qemu1:~# ip netns list root@qemu1:~# i

Re: ipv4: net namespace does not inherit network configurations

2014-07-29 Thread Cong Wang
On Tue, Jul 29, 2014 at 2:29 AM, zhuyj wrote: > Hi,all > > I did a test on kernel3.16 rc6: > > root@qemu1:~# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding > root@qemu1:~# echo 1 > /proc/sys/net/ipv4/conf/all/forwarding > root@qemu1:~# ip netns list > root@qemu1:~# ip netns add fib1 > root@qemu1:

ipv4: net namespace does not inherit network configurations

2014-07-29 Thread zhuyj
>From f3a68831d7c58b185d57f30130217b22a8e2c71f Mon Sep 17 00:00:00 2001 From: Zhu Yanjun Date: Tue, 29 Jul 2014 17:23:10 +0800 Subject: [PATCH 1/1] ipv4: net namespace does not inherit network configurations Ipv4 net namespace requires a similar logic change as commit c900a800 [ipv6: fix ba