summaryrefslogtreecommitdiffhomepage
path: root/networking/udhcp/leases.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:03:12 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-06-16 12:03:12 +0200
commitcab3a0127c3e6b7fc4f794ba6abcb8e01492118e (patch)
treeea04fac708ea47e251066ea6782b6f743f04933d /networking/udhcp/leases.c
parent56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11 (diff)
udhcp: cleanup of static lease handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r--networking/udhcp/leases.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index 403a8bca6..c318856f5 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -159,8 +159,8 @@ uint32_t FAST_FUNC find_free_or_expired_address(const uint8_t *chaddr)
if ((addr & 0xff) == 0xff)
continue;
net_addr = htonl(addr);
- /* addr has a static lease? */
- if (reservedIp(server_config.static_leases, net_addr))
+ /* is this a static lease addr? */
+ if (is_nip_reserved(server_config.static_leases, net_addr))
continue;
lease = find_lease_by_yiaddr(net_addr);