]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Prototypes for new dhcp protocol functions; add extra least expiry type
authorTed Lemon <source@isc.org>
Mon, 26 Feb 1996 01:57:06 +0000 (01:57 +0000)
committerTed Lemon <source@isc.org>
Mon, 26 Feb 1996 01:57:06 +0000 (01:57 +0000)
dhcpd.h
includes/dhcpd.h

diff --git a/dhcpd.h b/dhcpd.h
index 7d070d8b041e707e5eed33362b6adbe252047e6e..ee480badcd8aa0c213e41db6ba478a7a01f75518 100644 (file)
--- 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 *));
index 7d070d8b041e707e5eed33362b6adbe252047e6e..ee480badcd8aa0c213e41db6ba478a7a01f75518 100644 (file)
@@ -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 *));