ipconfig: Allow NULL gateway for IPv6
authorElena Tebesoi <elena.tebesoi@gmail.com>
Fri, 10 Aug 2012 09:59:02 +0000 (11:59 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 14 Aug 2012 06:02:01 +0000 (09:02 +0300)
This patch makes possible configuring a GPRS connection with
IPV6 settings and without gateway.

src/ipconfig.c

index 36067db..f704443 100644 (file)
@@ -169,9 +169,6 @@ int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress,
        if (check_ipv6_address(address) == FALSE)
                return -EINVAL;
 
-       if (check_ipv6_address(gateway) == FALSE)
-               return -EINVAL;
-
        DBG("prefix_len %d address %s gateway %s",
                        prefix_length, address, gateway);