summaryrefslogtreecommitdiffhomepage
path: root/src/dhcpv4.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-14 13:12:28 +0200
committerSteven Barth <steven@midlink.org>2013-10-14 13:12:28 +0200
commit78c5e4b032c420852abc2a9e1e6f429a4d803c21 (patch)
tree76c0f1f4c08571516b70d7f5575f7cec7cf02adf /src/dhcpv4.c
parent2a80a389e1df5341ada9a9f66ce0ad9844ef65f7 (diff)
Various fixes
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r--src/dhcpv4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c
index 38b4f9b..7a68f66 100644
--- a/src/dhcpv4.c
+++ b/src/dhcpv4.c
@@ -119,8 +119,8 @@ int setup_dhcpv4_interface(struct interface *iface, bool enable)
end = addr.s_addr & mask.s_addr;
if (ntohl(mask.s_addr) <= 0xffffff00) {
- iface->dhcpv4_start.s_addr = start | htonl(20);
- iface->dhcpv4_end.s_addr = end | htonl(199);
+ iface->dhcpv4_start.s_addr = start | htonl(100);
+ iface->dhcpv4_end.s_addr = end | htonl(250);
} else {
iface->dhcpv4_start.s_addr = start | htonl(10);
iface->dhcpv4_end.s_addr = end | htonl(59);
@@ -168,7 +168,7 @@ int setup_dhcpv4_interface(struct interface *iface, bool enable)
if (iface->dhcpv4_leasetime < 60)
- iface->dhcpv4_leasetime = 1800;
+ iface->dhcpv4_leasetime = 43200;
iface->dhcpv4_event.uloop.fd = sock;
iface->dhcpv4_event.handle_dgram = handle_dhcpv4;