blob: 81708ffea3c85d15b3af8dee78a345fe5e07c3e5 [file] [log] [blame]
Mike Frysinger7031f622006-05-08 03:20:50 +00001/* static_leases.h */
2#ifndef _STATIC_LEASES_H
3#define _STATIC_LEASES_H
4
5#include "dhcpd.h"
6
7/* Config file will pass static lease info to this function which will add it
8 * to a data structure that can be searched later */
9int addStaticLease(struct static_lease **lease_struct, uint8_t *mac, uint32_t *ip);
10
11/* Check to see if a mac has an associated static lease */
12uint32_t getIpByMac(struct static_lease *lease_struct, void *arg);
13
14/* Check to see if an ip is reserved as a static ip */
15uint32_t reservedIp(struct static_lease *lease_struct, uint32_t ip);
16
Rob Landley3f785612006-05-28 01:06:36 +000017/* Print out static leases just to check what's going on (debug code) */
Mike Frysinger7031f622006-05-08 03:20:50 +000018void printStaticLeases(struct static_lease **lease_struct);
Mike Frysinger7031f622006-05-08 03:20:50 +000019
20#endif
21
22
23