The second param of addrconf_ifdown() in function addrconf_notify() for event NETDEV_CHANGEMTU.
Subsystems (3)
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.
Signed-off-by Yan Zheng <[email protected]>
net/ipv6/addrconf.c +0 -0
@@ -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;