From 9c3cfd6e5e24f1b1380bb323d8dc3af0bb970e74 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 25 Apr 2012 11:20:04 +0300 Subject: [PATCH] ipconfig: Do not tweak IPv6 status of ignored devices --- src/ipconfig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index af5666d..8dc0a59 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -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) -- 2.7.4