diff options
author | Denys Vlasenko | 2009-06-16 12:03:12 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-06-16 12:03:12 +0200 |
commit | cab3a0127c3e6b7fc4f794ba6abcb8e01492118e (patch) | |
tree | ea04fac708ea47e251066ea6782b6f743f04933d /networking/udhcp/dhcpd.h | |
parent | 56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11 (diff) | |
download | busybox-cab3a0127c3e6b7fc4f794ba6abcb8e01492118e.zip busybox-cab3a0127c3e6b7fc4f794ba6abcb8e01492118e.tar.gz |
udhcp: cleanup of static lease handling
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index 61cd8c7..4774fd1 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h @@ -23,7 +23,7 @@ struct option_set { struct static_lease { struct static_lease *next; - uint32_t ip; + uint32_t nip; uint8_t mac[6]; }; @@ -97,15 +97,15 @@ uint32_t find_free_or_expired_address(const uint8_t *chaddr) FAST_FUNC; /*** static_leases.h ***/ -/* Config file will pass static lease info to this function which will add it - * to a data structure that can be searched later */ -void addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t ip) FAST_FUNC; -/* Check to see if a mac has an associated static lease */ -uint32_t getIpByMac(struct static_lease *lease_struct, void *arg) FAST_FUNC; -/* Check to see if an ip is reserved as a static ip */ -int reservedIp(struct static_lease *lease_struct, uint32_t ip) FAST_FUNC; +/* Config file parser will pass static lease info to this function + * which will add it to a data structure that can be searched later */ +void add_static_lease(struct static_lease **st_lease_pp, uint8_t *mac, uint32_t nip) FAST_FUNC; +/* Find static lease IP by mac */ +uint32_t get_static_nip_by_mac(struct static_lease *st_lease, void *arg) FAST_FUNC; +/* Check to see if an IP is reserved as a static IP */ +int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC; /* Print out static leases just to check what's going on (debug code) */ -void printStaticLeases(struct static_lease **lease_struct) FAST_FUNC; +void print_static_leases(struct static_lease **st_lease_pp) FAST_FUNC; /*** serverpacket.h ***/ |