1 /* vi: set sw=4 ts=4: */
3 #ifndef _STATIC_LEASES_H
4 #define _STATIC_LEASES_H
8 /* Config file will pass static lease info to this function which will add it
9 * to a data structure that can be searched later */
10 int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip);
12 /* Check to see if a mac has an associated static lease */
13 uint32_t getIpByMac(struct static_lease *lease_struct, void *arg);
15 /* Check to see if an ip is reserved as a static ip */
16 uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip);
18 /* Print out static leases just to check what's going on (debug code) */
19 void printStaticLeases(struct static_lease **lease_struct);