mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 07:45:20 +00:00
Prototypes for new dhcp protocol functions; add extra least expiry type
This commit is contained in:
7
dhcpd.h
7
dhcpd.h
@@ -106,6 +106,7 @@ struct lease {
|
|||||||
struct lease *prev;
|
struct lease *prev;
|
||||||
struct iaddr ip_addr;
|
struct iaddr ip_addr;
|
||||||
TIME starts, ends, timestamp;
|
TIME starts, ends, timestamp;
|
||||||
|
TIME offered_expiry;
|
||||||
unsigned char *uid;
|
unsigned char *uid;
|
||||||
int uid_len;
|
int uid_len;
|
||||||
struct host_decl *host;
|
struct host_decl *host;
|
||||||
@@ -230,6 +231,12 @@ int tree_evaluate PROTO ((struct tree_cache *));
|
|||||||
|
|
||||||
/* dhcp.c */
|
/* dhcp.c */
|
||||||
void dhcp PROTO ((struct packet *));
|
void dhcp PROTO ((struct packet *));
|
||||||
|
void dhcpdiscover PROTO ((struct packet *));
|
||||||
|
void dhcprequest PROTO ((struct packet *));
|
||||||
|
void dhcprelease PROTO ((struct packet *));
|
||||||
|
void nak_lease PROTO ((struct packet *));
|
||||||
|
void ack_lease PROTO ((struct packet *, struct lease *, unsigned char, TIME));
|
||||||
|
struct lease *find_lease PROTO ((struct packet *));
|
||||||
|
|
||||||
/* bootp.c */
|
/* bootp.c */
|
||||||
void bootp PROTO ((struct packet *));
|
void bootp PROTO ((struct packet *));
|
||||||
|
@@ -106,6 +106,7 @@ struct lease {
|
|||||||
struct lease *prev;
|
struct lease *prev;
|
||||||
struct iaddr ip_addr;
|
struct iaddr ip_addr;
|
||||||
TIME starts, ends, timestamp;
|
TIME starts, ends, timestamp;
|
||||||
|
TIME offered_expiry;
|
||||||
unsigned char *uid;
|
unsigned char *uid;
|
||||||
int uid_len;
|
int uid_len;
|
||||||
struct host_decl *host;
|
struct host_decl *host;
|
||||||
@@ -230,6 +231,12 @@ int tree_evaluate PROTO ((struct tree_cache *));
|
|||||||
|
|
||||||
/* dhcp.c */
|
/* dhcp.c */
|
||||||
void dhcp PROTO ((struct packet *));
|
void dhcp PROTO ((struct packet *));
|
||||||
|
void dhcpdiscover PROTO ((struct packet *));
|
||||||
|
void dhcprequest PROTO ((struct packet *));
|
||||||
|
void dhcprelease PROTO ((struct packet *));
|
||||||
|
void nak_lease PROTO ((struct packet *));
|
||||||
|
void ack_lease PROTO ((struct packet *, struct lease *, unsigned char, TIME));
|
||||||
|
struct lease *find_lease PROTO ((struct packet *));
|
||||||
|
|
||||||
/* bootp.c */
|
/* bootp.c */
|
||||||
void bootp PROTO ((struct packet *));
|
void bootp PROTO ((struct packet *));
|
||||||
|
Reference in New Issue
Block a user