aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
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/dhcpd.h
parent56f2d06c6496e49d7e752d1ee5ac5ea420b4ed11 (diff)
downloadbusybox-w32-cab3a0127c3e6b7fc4f794ba6abcb8e01492118e.tar.gz
busybox-w32-cab3a0127c3e6b7fc4f794ba6abcb8e01492118e.tar.bz2
busybox-w32-cab3a0127c3e6b7fc4f794ba6abcb8e01492118e.zip
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.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index 61cd8c7be..4774fd12c 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -23,7 +23,7 @@ struct option_set {
23 23
24struct static_lease { 24struct static_lease {
25 struct static_lease *next; 25 struct static_lease *next;
26 uint32_t ip; 26 uint32_t nip;
27 uint8_t mac[6]; 27 uint8_t mac[6];
28}; 28};
29 29
@@ -97,15 +97,15 @@ uint32_t find_free_or_expired_address(const uint8_t *chaddr) FAST_FUNC;
97 97
98/*** static_leases.h ***/ 98/*** static_leases.h ***/
99 99
100/* Config file will pass static lease info to this function which will add it 100/* Config file parser will pass static lease info to this function
101 * to a data structure that can be searched later */ 101 * which will add it to a data structure that can be searched later */
102void addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t ip) FAST_FUNC; 102void add_static_lease(struct static_lease **st_lease_pp, uint8_t *mac, uint32_t nip) FAST_FUNC;
103/* Check to see if a mac has an associated static lease */ 103/* Find static lease IP by mac */
104uint32_t getIpByMac(struct static_lease *lease_struct, void *arg) FAST_FUNC; 104uint32_t get_static_nip_by_mac(struct static_lease *st_lease, void *arg) FAST_FUNC;
105/* Check to see if an ip is reserved as a static ip */ 105/* Check to see if an IP is reserved as a static IP */
106int reservedIp(struct static_lease *lease_struct, uint32_t ip) FAST_FUNC; 106int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC;
107/* Print out static leases just to check what's going on (debug code) */ 107/* Print out static leases just to check what's going on (debug code) */
108void printStaticLeases(struct static_lease **lease_struct) FAST_FUNC; 108void print_static_leases(struct static_lease **st_lease_pp) FAST_FUNC;
109 109
110 110
111/*** serverpacket.h ***/ 111/*** serverpacket.h ***/