tethering: Fix start of IP pool
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Mon, 6 Feb 2012 12:30:43 +0000 (13:30 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 13 Feb 2012 11:55:36 +0000 (12:55 +0100)
The pool should start at 2 not 1 since this collides with
the gateway address.

src/tethering.c

index 4bf16d7..161e971 100644 (file)
@@ -194,7 +194,7 @@ void __connman_tethering_set_enabled(void)
                return;
 
        index = connman_inet_ifindex(BRIDGE_NAME);
-       dhcp_ippool = __connman_ippool_create(index, 1, 253,
+       dhcp_ippool = __connman_ippool_create(index, 2, 253,
                                                tethering_restart, NULL);
        if (dhcp_ippool == NULL) {
                connman_error("Fail to create IP pool");