[PATCH v1] tethering: Fix start of IP pool

Daniel Wagner wagi at monom.org
Mon Feb 6 04:49:49 PST 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

The pool should start at 2 not 1 since this collides with
the gateway address.
---
 src/tethering.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tethering.c b/src/tethering.c
index b135b45..89f3436 100644
--- a/src/tethering.c
+++ b/src/tethering.c
@@ -354,7 +354,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, 252,
 						tethering_restart, NULL);
 	if (dhcp_ippool == NULL) {
 		connman_error("Fail to create IP pool");
-- 
1.7.9.48.g85da4d




More information about the connman mailing list