* [PATCH]The second param of addrconf_ifdown() in function addrconf_notify() for event NETDEV_CHANGEMTU.
@ 2005-10-16 15:25 Yan Zheng
0 siblings, 0 replies; only message in thread
From: Yan Zheng @ 2005-10-16 15:25 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel
Hi.
I think the second parameter of addrconf_ifdown() should be 0 for event NETDEV_CHANGEMTU.
Signed-off-by: Yan Zheng <yanzheng@21cn.com>
Index: net/ipv6/addrconf.c
===================================================================
--- linux-2.6.14-rc4-git2/net/ipv6/addrconf.c 2005-10-14 18:28:01.000000000 +0800
+++ linux/net/ipv6/addrconf.c 2005-10-16 23:04:40.000000000 +0800
@@ -2018,7 +2018,7 @@
stop IPv6 on this interface.
*/
if (dev->mtu < IPV6_MIN_MTU)
- addrconf_ifdown(dev, event != NETDEV_DOWN);
+ addrconf_ifdown(dev, 0);
}
break;
@@ -2036,7 +2036,7 @@
/*
* Remove all addresses from this interface.
*/
- addrconf_ifdown(dev, event != NETDEV_DOWN);
+ addrconf_ifdown(dev, event == NETDEV_UNREGISTER);
break;
case NETDEV_CHANGE:
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-16 15:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-16 15:25 [PATCH]The second param of addrconf_ifdown() in function addrconf_notify() for event NETDEV_CHANGEMTU Yan Zheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).