Remove leases.h.
This commit is contained in:
parent
a059b5bd13
commit
bb5446cf02
@ -6,8 +6,6 @@
|
|||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
#include <netinet/udp.h>
|
#include <netinet/udp.h>
|
||||||
|
|
||||||
#include "leases.h"
|
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
/* Defaults _you_ may want to tweak */
|
/* Defaults _you_ may want to tweak */
|
||||||
/************************************/
|
/************************************/
|
||||||
|
@ -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
|
|
@ -11,7 +11,6 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include "leases.h"
|
|
||||||
|
|
||||||
/* supported options are easily added here */
|
/* supported options are easily added here */
|
||||||
struct dhcp_option options[] = {
|
struct dhcp_option options[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user