aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dhcpd.h')
-rw-r--r--networking/udhcp/dhcpd.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/networking/udhcp/dhcpd.h b/networking/udhcp/dhcpd.h
index 9dd5bef9e..b8f96b029 100644
--- a/networking/udhcp/dhcpd.h
+++ b/networking/udhcp/dhcpd.h
@@ -90,39 +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
93extern struct dyn_lease *g_leases;
94
95struct 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;
100int is_expired_lease(struct dyn_lease *lease) FAST_FUNC;
101struct dyn_lease *find_lease_by_mac(const uint8_t *mac) FAST_FUNC;
102struct dyn_lease *find_lease_by_nip(uint32_t nip) FAST_FUNC;
103uint32_t find_free_or_expired_nip(const uint8_t *safe_mac, unsigned arpping_ms) FAST_FUNC;
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 */
108void add_static_lease(struct static_lease **st_lease_pp, uint8_t *mac, uint32_t nip) FAST_FUNC;
109/* Find static lease IP by mac */
110uint32_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 */
112int 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
115void 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
120
121void read_config(const char *file) FAST_FUNC;
122void write_leases(void) FAST_FUNC;
123void read_leases(const char *file) FAST_FUNC;
124
125
126POP_SAVED_FUNCTION_VISIBILITY 93POP_SAVED_FUNCTION_VISIBILITY
127 94
128#endif 95#endif