projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1194637
)
Fix DHCP settings for /28
author
Steven Barth
<steven@midlink.org>
Tue, 10 Jun 2014 08:40:14 +0000
(10:40 +0200)
committer
Steven Barth
<steven@midlink.org>
Tue, 10 Jun 2014 08:47:07 +0000
(10:47 +0200)
src/dhcpv4.c
patch
|
blob
|
history
diff --git
a/src/dhcpv4.c
b/src/dhcpv4.c
index ad14e3495a4a648c3abee109fdc758cd7410e07b..4b694672455b25c8c3489f9099fbb8436cc40bdd 100644
(file)
--- a/
src/dhcpv4.c
+++ b/
src/dhcpv4.c
@@
-129,9
+129,12
@@
int setup_dhcpv4_interface(struct interface *iface, bool enable)
} else if (ntohl(mask.s_addr) <= 0xffffffc0) {
iface->dhcpv4_start.s_addr = start | htonl(10);
iface->dhcpv4_end.s_addr = end | htonl(60);
- } else {
+ } else
if (ntohl(mask.s_addr) <= 0xffffffe0)
{
iface->dhcpv4_start.s_addr = start | htonl(10);
iface->dhcpv4_end.s_addr = end | htonl(30);
+ } else {
+ iface->dhcpv4_start.s_addr = start | htonl(3);
+ iface->dhcpv4_end.s_addr = end | htonl(12);
}
}