diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-12 14:07:18 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-23 12:58:50 +0200 |
commit | 68dde4bb2c3e90a6f48dc48609636228dd186c8c (patch) | |
tree | 319e4787674daa49b939916769611f0770a32e91 /src/tethering.c | |
parent | d20247d3b3074b7c5937540ce5dbc8f020c79907 (diff) | |
download | connman-68dde4bb2c3e90a6f48dc48609636228dd186c8c.tar.gz connman-68dde4bb2c3e90a6f48dc48609636228dd186c8c.tar.bz2 connman-68dde4bb2c3e90a6f48dc48609636228dd186c8c.zip |
ipconfig: Move IP address API into separate ipaddress.c file
Done so that connman_ipaddress_* functions can be used from
separate vpn daemon.
Diffstat (limited to 'src/tethering.c')
-rw-r--r-- | src/tethering.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tethering.c b/src/tethering.c index b9df21b3..ab892d3a 100644 --- a/src/tethering.c +++ b/src/tethering.c @@ -247,7 +247,7 @@ void __connman_tethering_set_enabled(void) } prefixlen = - __connman_ipconfig_netmask_prefix_len(subnet_mask); + __connman_ipaddress_netmask_prefix_len(subnet_mask); __connman_nat_enable(BRIDGE_NAME, start_ip, prefixlen); DBG("tethering started"); @@ -300,7 +300,7 @@ static void setup_tun_interface(unsigned int flags, unsigned change, server_ip = __connman_ippool_get_start_ip(pn->pool); peer_ip = __connman_ippool_get_end_ip(pn->pool); prefixlen = - __connman_ipconfig_netmask_prefix_len(subnet_mask); + __connman_ipaddress_netmask_prefix_len(subnet_mask); if ((__connman_inet_modify_address(RTM_NEWADDR, NLM_F_REPLACE | NLM_F_ACK, pn->index, AF_INET, |