From: Jukka Rissanen Date: Thu, 9 Dec 2010 11:11:52 +0000 (+0200) Subject: ipconfig: Set the IPv6 gateway address only from an IPv6 config X-Git-Tag: 2.0_alpha~2008 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61207f350f0eb61ea436b0bdc0e4148631490ece;p=framework%2Fconnectivity%2Fconnman.git ipconfig: Set the IPv6 gateway address only from an IPv6 config --- diff --git a/src/ipconfig.c b/src/ipconfig.c index 9ba8486..cf164c0 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1254,7 +1254,8 @@ void __connman_ipconfig_set_element_ipv6_gateway( struct connman_ipconfig *ipconfig, struct connman_element *element) { - element->ipv6.gateway = ipconfig->address->gateway; + if (ipconfig->type == CONNMAN_IPCONFIG_TYPE_IPV6) + element->ipv6.gateway = ipconfig->address->gateway; } /*