ipconfig: Do not tweak IPv6 status of ignored devices
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 25 Apr 2012 08:20:04 +0000 (11:20 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 25 Apr 2012 08:59:00 +0000 (10:59 +0200)
src/ipconfig.c

index af5666d..8dc0a59 100644 (file)
@@ -555,8 +555,10 @@ static void __connman_ipconfig_lower_up(struct connman_ipdevice *ipdevice)
                        ipdevice->config_ipv6->enabled == TRUE)
                return;
 
-       set_ipv6_state(ipdevice->ifname, FALSE);
-       ipdevice->ipv6_enabled = FALSE;
+       if (__connman_device_isfiltered(ipdevice->ifname) == FALSE) {
+               ipdevice->ipv6_enabled = get_ipv6_state(ipdevice->ifname);
+               set_ipv6_state(ipdevice->ifname, FALSE);
+       }
 }
 
 static void __connman_ipconfig_lower_down(struct connman_ipdevice *ipdevice)