diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-04 00:43:14 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-04 00:56:58 +0200 |
commit | d2ae66cb3e5c79ffdbde553fa6cce64f9218e14d (patch) | |
tree | 2d1a84fe6968c657afca97a5b43bb5cc5ea5c966 /networking/udhcp/dhcpd.h | |
parent | 2bf2931d526fbd3998b9ffe99cdbad5d5ea6d290 (diff) | |
download | busybox-w32-d2ae66cb3e5c79ffdbde553fa6cce64f9218e14d.tar.gz busybox-w32-d2ae66cb3e5c79ffdbde553fa6cce64f9218e14d.tar.bz2 busybox-w32-d2ae66cb3e5c79ffdbde553fa6cce64f9218e14d.zip |
dhcp: merge most of static_leases.c into dhcpd.c
function old new delta
read_staticlease 121 222 +101
add_static_lease 48 - -48
log_static_leases 68 - -68
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/0 up/down: 101/-116) Total: -15 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index 08c9e8c63..b8d94a763 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h | |||
@@ -102,20 +102,7 @@ struct dyn_lease *find_lease_by_mac(const uint8_t *mac) FAST_FUNC; | |||
102 | struct dyn_lease *find_lease_by_nip(uint32_t nip) FAST_FUNC; | 102 | struct dyn_lease *find_lease_by_nip(uint32_t nip) FAST_FUNC; |
103 | uint32_t find_free_or_expired_nip(const uint8_t *safe_mac, unsigned arpping_ms) FAST_FUNC; | 103 | uint32_t find_free_or_expired_nip(const uint8_t *safe_mac, unsigned arpping_ms) FAST_FUNC; |
104 | 104 | ||
105 | |||
106 | /* Config file parser will pass static lease info to this function | ||
107 | * which will add it to a data structure that can be searched later */ | ||
108 | void add_static_lease(struct static_lease **st_lease_pp, uint8_t *mac, uint32_t nip) FAST_FUNC; | ||
109 | /* Find static lease IP by mac */ | ||
110 | uint32_t get_static_nip_by_mac(struct static_lease *st_lease, void *arg) FAST_FUNC; | ||
111 | /* Check to see if an IP is reserved as a static IP */ | ||
112 | int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC; | 105 | int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC; |
113 | /* Print out static leases just to check what's going on (debug code) */ | ||
114 | #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2 | ||
115 | void log_static_leases(struct static_lease **st_lease_pp) FAST_FUNC; | ||
116 | #else | ||
117 | # define log_static_leases(st_lease_pp) ((void)0) | ||
118 | #endif | ||
119 | 106 | ||
120 | POP_SAVED_FUNCTION_VISIBILITY | 107 | POP_SAVED_FUNCTION_VISIBILITY |
121 | 108 | ||