Skip to contentSkip to conversation

The second param of addrconf_ifdown() in function addrconf_notify() for event NETDEV_CHANGEMTU.

PATCH New Yan Zheng 1 participant 1 message Oct 16, 2005

Subsystems (3)
lore
Share & tools
lore

Yan Zheng

author
#0 lore raw

PATCH 1/1 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.

net/ipv6/addrconf.c +0 -0
Index: net/ipv6/addrconf.c
===================================================================
@@ -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;