diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-01 21:05:57 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-01 21:05:57 +0400 |
commit | c82b5108e1a40f3b299043770e01d7d7db35de04 (patch) | |
tree | 35039a36868df644b8e5ffc766c1b0c921c88ab5 /networking/udhcp/leases.c | |
parent | dc7a5eae36d31f5cfc301de2499329b8a03ea660 (diff) |
udhcp: new config option "Rewrite the lease file at every new acknowledge"
(Mats Erik Andersson <mats@blue2net.com> (Blue2Net AB))
udhcp: consistently treat server_config.start/end IPs as host-order
fix IP parsing for 64bit machines
fix unsafe hton macro usage in read_opt()
do not chdir("/") when daemonizing
fix help text
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r-- | networking/udhcp/leases.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c index 5d8775f63..ceec07345 100644 --- a/networking/udhcp/leases.c +++ b/networking/udhcp/leases.c @@ -119,8 +119,8 @@ uint32_t find_address(int check_expired) uint32_t addr, ret; struct dhcpOfferedAddr *lease = NULL; - addr = ntohl(server_config.start); /* addr is in host order here */ - for (;addr <= ntohl(server_config.end); addr++) { + addr = server_config.start_ip; /* addr is in host order here */ + for (;addr <= server_config.end_ip; addr++) { /* ie, 192.168.55.0 */ if (!(addr & 0xFF)) continue; |