2006-05-08 08:50:50 +05:30
|
|
|
/* static_leases.h */
|
|
|
|
#ifndef _STATIC_LEASES_H
|
|
|
|
#define _STATIC_LEASES_H
|
|
|
|
|
|
|
|
#include "dhcpd.h"
|
|
|
|
|
|
|
|
/* Config file will pass static lease info to this function which will add it
|
|
|
|
* to a data structure that can be searched later */
|
|
|
|
int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip);
|
|
|
|
|
|
|
|
/* Check to see if a mac has an associated static lease */
|
|
|
|
uint32_t getIpByMac(struct static_lease *lease_struct, void *arg);
|
|
|
|
|
|
|
|
/* Check to see if an ip is reserved as a static ip */
|
|
|
|
uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip);
|
|
|
|
|
2006-05-28 06:36:36 +05:30
|
|
|
/* Print out static leases just to check what's going on (debug code) */
|
2006-05-08 08:50:50 +05:30
|
|
|
void printStaticLeases(struct static_lease **lease_struct);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|