lkml.org 
[lkml]   [2005]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH]The second param of addrconf_ifdown() in function addrconf_notify() for event NETDEV_CHANGEMTU.
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-10-16 17:28    [W:0.027 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site