summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2020-10-12 22:18:33 +0200
committerFrancis Dupont <fdupont@isc.org>2020-10-12 22:18:33 +0200
commit933b80fa645924c9bc6bb0c32209ca0865d6a4b8 (patch)
tree675e61775d1393df2e3c2b82ca836a3670c17bd5 /includes
parent9d8d2fb788ba28d514e8e0d157062a7788ec9609 (diff)
downloadisc-dhcp-933b80fa645924c9bc6bb0c32209ca0865d6a4b8.tar.gz
Checkpoint: added start/finish v6only
Diffstat (limited to 'includes')
-rw-r--r--includes/dhcpd.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index b20dd240..caeeaeda 100644
--- a/includes/dhcpd.h
+++ b/includes/dhcpd.h
@@ -877,6 +877,10 @@ struct lease_state {
# define DEFAULT_ABANDON_LEASE_TIME 86400
#endif
+#if !defined (MIN_V6ONLY_WAIT)
+# define MIN_V6ONLY_WAIT 300
+#endif
+
#define PLM_IGNORE 0
#define PLM_PREFER 1
#define PLM_EXACT 2
@@ -1204,7 +1208,8 @@ enum dhcp_state {
S_RENEWING = 6,
S_REBINDING = 7,
S_DECLINING = 8,
- S_STOPPED = 9
+ S_STOPPED = 9,
+ S_V6ONLY = 10
};
/* Possible pending client operations. */
@@ -3003,6 +3008,9 @@ void state_bound (void *);
void state_stop (void *);
void state_panic (void *);
+void start_v6only (struct packet *, struct client_state *);
+void finish_v6only (void *);
+
void bind_lease (struct client_state *);
void make_client_options (struct client_state *,