diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-04 00:51:38 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-10-04 00:56:58 +0200 |
commit | a85740c8afe6942beff90fec345403b37b2a9092 (patch) | |
tree | 23781137d927ccfb0595b20bc8922b243334a81f /networking/udhcp/dhcpd.h | |
parent | d2ae66cb3e5c79ffdbde553fa6cce64f9218e14d (diff) | |
download | busybox-w32-a85740c8afe6942beff90fec345403b37b2a9092.tar.gz busybox-w32-a85740c8afe6942beff90fec345403b37b2a9092.tar.bz2 busybox-w32-a85740c8afe6942beff90fec345403b37b2a9092.zip |
dhcp: merge leases.c and static_leases.c into dhcpd.c
function old new delta
send_offer 292 461 +169
udhcpd_main 1531 1588 +57
read_leases 330 332 +2
add_lease 314 312 -2
find_lease_by_mac 68 - -68
find_free_or_expired_nip 174 - -174
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 3/1 up/down: 228/-244) Total: -16 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r-- | networking/udhcp/dhcpd.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h index b8d94a763..b8f96b029 100644 --- a/networking/udhcp/dhcpd.h +++ b/networking/udhcp/dhcpd.h | |||
@@ -90,20 +90,6 @@ struct dyn_lease { | |||
90 | /* total size is a multiply of 4 */ | 90 | /* total size is a multiply of 4 */ |
91 | } PACKED; | 91 | } PACKED; |
92 | 92 | ||
93 | extern struct dyn_lease *g_leases; | ||
94 | |||
95 | struct dyn_lease *add_lease( | ||
96 | const uint8_t *chaddr, uint32_t yiaddr, | ||
97 | leasetime_t leasetime, | ||
98 | const char *hostname, int hostname_len | ||
99 | ) FAST_FUNC; | ||
100 | int is_expired_lease(struct dyn_lease *lease) FAST_FUNC; | ||
101 | 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; | ||
103 | uint32_t find_free_or_expired_nip(const uint8_t *safe_mac, unsigned arpping_ms) FAST_FUNC; | ||
104 | |||
105 | int is_nip_reserved(struct static_lease *st_lease, uint32_t nip) FAST_FUNC; | ||
106 | |||
107 | POP_SAVED_FUNCTION_VISIBILITY | 93 | POP_SAVED_FUNCTION_VISIBILITY |
108 | 94 | ||
109 | #endif | 95 | #endif |