From bb5446cf02fac8e00583545c88991829d4078bf5 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Sat, 13 Nov 2010 06:45:34 -0500 Subject: [PATCH] Remove leases.h. --- ndhc/dhcpd.h | 2 -- ndhc/leases.h | 24 ------------------------ ndhc/options.c | 1 - 3 files changed, 27 deletions(-) delete mode 100644 ndhc/leases.h diff --git a/ndhc/dhcpd.h b/ndhc/dhcpd.h index f463258..b376bc0 100644 --- a/ndhc/dhcpd.h +++ b/ndhc/dhcpd.h @@ -6,8 +6,6 @@ #include #include -#include "leases.h" - /************************************/ /* Defaults _you_ may want to tweak */ /************************************/ diff --git a/ndhc/leases.h b/ndhc/leases.h deleted file mode 100644 index bc3221f..0000000 --- a/ndhc/leases.h +++ /dev/null @@ -1,24 +0,0 @@ -/* leases.h */ -#ifndef _LEASES_H -#define _LEASES_H - - -struct dhcpOfferedAddr { - uint8_t chaddr[16]; - uint32_t yiaddr; /* network order */ - uint32_t expires; /* host order */ -}; - -extern unsigned char blank_chaddr[]; - -void clear_lease(uint8_t *chaddr, uint32_t yiaddr); -struct dhcpOfferedAddr *add_lease(uint8_t *chaddr, uint32_t yiaddr, uint32_t lease); -int lease_expired(struct dhcpOfferedAddr *lease); -struct dhcpOfferedAddr *oldest_expired_lease(void); -struct dhcpOfferedAddr *find_lease_by_chaddr(uint8_t *chaddr); -struct dhcpOfferedAddr *find_lease_by_yiaddr(uint32_t yiaddr); -uint32_t find_address(int check_expired); -int check_ip(uint32_t addr); - - -#endif diff --git a/ndhc/options.c b/ndhc/options.c index b387e24..e0722f0 100644 --- a/ndhc/options.c +++ b/ndhc/options.c @@ -11,7 +11,6 @@ #include "log.h" #include "dhcpd.h" #include "options.h" -#include "leases.h" /* supported options are easily added here */ struct dhcp_option options[] = {