diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-01-26 14:30:17 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-01 10:13:19 +0100 |
commit | c92a03edebc7e3e37a71d3e1350619031bc17ddf (patch) | |
tree | ce614055a076505c49d3580cd1dbd589db068764 /src/tethering.c | |
parent | 3166418dec616ad5ef5cb1fc11a163c000cb27b4 (diff) | |
download | connman-c92a03edebc7e3e37a71d3e1350619031bc17ddf.tar.gz connman-c92a03edebc7e3e37a71d3e1350619031bc17ddf.tar.bz2 connman-c92a03edebc7e3e37a71d3e1350619031bc17ddf.zip |
ippool: Add API to notify when IP is externally assigned
Diffstat (limited to 'src/tethering.c')
-rw-r--r-- | src/tethering.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tethering.c b/src/tethering.c index f7d40a1b..5c359dd4 100644 --- a/src/tethering.c +++ b/src/tethering.c @@ -329,6 +329,7 @@ static void disable_nat(const char *interface) void __connman_tethering_set_enabled(void) { + int index; int err; const char *gateway; const char *broadcast; @@ -346,7 +347,8 @@ void __connman_tethering_set_enabled(void) if (err < 0) return; - dhcp_ippool = __connman_ippool_create(1, 253); + index = connman_inet_ifindex(BRIDGE_NAME); + dhcp_ippool = __connman_ippool_create(index, 1, 253, NULL, NULL); if (dhcp_ippool == NULL) { connman_error("Fail to create IP pool"); return; @@ -583,7 +585,7 @@ int __connman_private_network_request(DBusMessage *msg, const char *owner) pn->fd = fd; pn->interface = iface; pn->index = index; - pn->pool = __connman_ippool_create(1, 1); + pn->pool = __connman_ippool_create(pn->fd, 1, 1, NULL, NULL); if (pn->pool == NULL) { errno = -ENOMEM; goto error; |