[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110123204745.2f4f2de0@s6510>
Date: Sun, 23 Jan 2011 20:47:45 +1100
From: Stephen Hemminger <shemminger@...tta.com>
To: Jiri Bohac <jbohac@...e.cz>
Cc: David Miller <davem@...emloft.net>, yoshfuji@...ux-ipv6.org,
netdev@...r.kernel.org
Subject: Re: ipv6: why disable ipv6 on last address removal?
What about this? It will remove the address on ipv6 disable.
--- a/net/ipv6/addrconf.c 2011-01-23 20:30:25.897243002 +1100
+++ b/net/ipv6/addrconf.c 2011-01-23 20:30:41.161243002 +1100
@@ -4197,7 +4197,7 @@ static void dev_disable_change(struct in
return;
if (idev->cnf.disable_ipv6)
- addrconf_notify(NULL, NETDEV_DOWN, idev->dev);
+ addrconf_notify(NULL, NETDEV_UNREGISTER, idev->dev);
else
addrconf_notify(NULL, NETDEV_UP, idev->dev);
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists