From: Ted Lemon Date: Mon, 26 Feb 1996 01:57:06 +0000 (+0000) Subject: Prototypes for new dhcp protocol functions; add extra least expiry type X-Git-Tag: SS960225~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f5e2ec8970b745ec201f018addb0277d574fdcd;p=thirdparty%2Fdhcp.git Prototypes for new dhcp protocol functions; add extra least expiry type --- diff --git a/dhcpd.h b/dhcpd.h index 7d070d8b0..ee480badc 100644 --- a/dhcpd.h +++ b/dhcpd.h @@ -106,6 +106,7 @@ struct lease { struct lease *prev; struct iaddr ip_addr; TIME starts, ends, timestamp; + TIME offered_expiry; unsigned char *uid; int uid_len; struct host_decl *host; @@ -230,6 +231,12 @@ int tree_evaluate PROTO ((struct tree_cache *)); /* dhcp.c */ 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 */ void bootp PROTO ((struct packet *)); diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 7d070d8b0..ee480badc 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -106,6 +106,7 @@ struct lease { struct lease *prev; struct iaddr ip_addr; TIME starts, ends, timestamp; + TIME offered_expiry; unsigned char *uid; int uid_len; struct host_decl *host; @@ -230,6 +231,12 @@ int tree_evaluate PROTO ((struct tree_cache *)); /* dhcp.c */ 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 */ void bootp PROTO ((struct packet *));