projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
439e238
)
[IPV6]: inet6_dev on loopback should be kept until namespace stop.
author
Denis V. Lunev
<
[email protected]
>
Thu, 3 Apr 2008 20:31:53 +0000
(13:31 -0700)
committer
David S. Miller
<
[email protected]
>
Thu, 3 Apr 2008 20:31:53 +0000
(13:31 -0700)
In the other case it will be destroyed when last address will be removed
from lo inside a namespace. This will break IPv6 in several places. The
most obvious one is ip6_dst_ifdown.
Signed-off-by: Denis V. Lunev <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/addrconf.c
patch
|
blob
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index 4fa9da0be19a6f09a262df7c4de6fd1aa5d0f851..a65935a9afd93e983200cd10a380ffa4eb7071ba 100644
(file)
--- a/
net/ipv6/addrconf.c
+++ b/
net/ipv6/addrconf.c
@@
-2456,7
+2456,7
@@
static int addrconf_ifdown(struct net_device *dev, int how)
ASSERT_RTNL();
- if (
dev == init_net.loopback_dev
&& how == 1)
+ if (
(dev->flags & IFF_LOOPBACK)
&& how == 1)
how = 0;
rt6_ifdown(dev);