summaryrefslogtreecommitdiff
path: root/src/ipconfig.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2011-02-25 19:31:04 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2011-02-25 19:31:04 +0100
commit76b454562798599cfc81ada45e3d634117c89aed (patch)
tree56c6504995added3e9462836f089125bc6e941cf /src/ipconfig.c
parentaf62314caf469a2d87380c211b0308987065be07 (diff)
downloadconnman-76b454562798599cfc81ada45e3d634117c89aed.tar.gz
connman-76b454562798599cfc81ada45e3d634117c89aed.tar.bz2
connman-76b454562798599cfc81ada45e3d634117c89aed.zip
service: Add a generic ipconfig selection routine
Diffstat (limited to 'src/ipconfig.c')
-rw-r--r--src/ipconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipconfig.c b/src/ipconfig.c
index d620383a..7eea909f 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -168,7 +168,7 @@ int connman_ipaddress_set_ipv6(struct connman_ipaddress *ipaddress,
DBG("prefix_len %d address %s gateway %s",
prefix_length, address, gateway);
- ipaddress->family = CONNMAN_IPCONFIG_TYPE_IPV6;
+ ipaddress->family = AF_INET6;
ipaddress->prefixlen = prefix_length;
@@ -187,7 +187,7 @@ int connman_ipaddress_set_ipv4(struct connman_ipaddress *ipaddress,
if (ipaddress == NULL)
return -EINVAL;
- ipaddress->family = CONNMAN_IPCONFIG_TYPE_IPV4;
+ ipaddress->family = AF_INET;
ipaddress->prefixlen = __connman_ipconfig_netmask_prefix_len(netmask);