IFF_L2_ONLY interfaces are Layer-2 only network devices and do not support configuration of IPv6 addresses, nor the full IPv6 protocol stack. Do nothing for these interfaces.
Signed-off-by: Florian Fainelli <f.faine...@gmail.com> --- net/ipv6/addrconf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 0f08d3b9e238..0365b5ffe339 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -3161,6 +3161,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, int run_pending = 0; int err; + if (dev->flags & IFF_L2_ONLY) + goto out; + switch (event) { case NETDEV_REGISTER: if (!idev && dev->mtu >= IPV6_MIN_MTU) { @@ -3304,6 +3307,7 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, addrconf_type_change(dev, event); break; } +out: return NOTIFY_OK; } -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html