From: Ted Lemon Date: Wed, 3 May 2000 22:56:56 +0000 (+0000) Subject: Add flags to indicate the failover queue a least is on. X-Git-Tag: V3-BETA-2-PATCH-1~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9d43a9a2df9076e7299cba770d30c4805777b29;p=thirdparty%2Fdhcp.git Add flags to indicate the failover queue a least is on. --- diff --git a/includes/dhcpd.h b/includes/dhcpd.h index c19a8b36a..490c95f73 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -268,6 +268,8 @@ struct lease { # define MS_NULL_TERMINATION 8 # define ABANDONED_LEASE 16 # define PEER_IS_OWNER 32 +# define ON_UPDATE_QUEUE 64 +# define ON_ACK_QUEUE 128 # define EPHEMERAL_FLAGS (BOOTP_LEASE | MS_NULL_TERMINATION | \ ABANDONED_LEASE | PEER_IS_OWNER) @@ -1147,7 +1149,8 @@ struct lease *mockup_lease PROTO ((struct packet *, struct host_decl *)); void static_lease_dereference PROTO ((struct lease *, const char *, int)); -struct lease *allocate_lease PROTO ((struct packet *, struct pool *, int)); +struct lease *allocate_lease PROTO ((struct packet *, + struct pool *, int, int *)); int permitted PROTO ((struct packet *, struct permit *)); int locate_network PROTO ((struct packet *)); int parse_agent_information_option PROTO ((struct packet *, int, u_int8_t *)); @@ -2054,6 +2057,7 @@ isc_result_t dhcp_failover_set_state (dhcp_failover_state_t *, enum failover_state); isc_result_t dhcp_failover_send_updates (dhcp_failover_state_t *); int dhcp_failover_queue_update (struct lease *); +void dhcp_failover_ack_queue_remove (dhcp_failover_state_t *, struct lease *); isc_result_t dhcp_failover_state_set_value PROTO ((omapi_object_t *, omapi_object_t *, omapi_data_string_t *,