From: Ted Lemon Date: Thu, 6 May 1999 20:25:41 +0000 (+0000) Subject: Remember in lease state X-Git-Tag: V3-ALPHA-19990506~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f67530be69e025ee08401f2e6951431e64530129;p=thirdparty%2Fdhcp.git Remember in lease state - whether or not we got requested address and server identifier options, and - the shared network to which the interface on which the request arrived is attached. --- diff --git a/includes/dhcpd.h b/includes/dhcpd.h index ae006257c..8bd4bbc1d 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -129,6 +129,9 @@ struct packet { u_int8_t *remote_id; /* Remote ID of client. */ int remote_id_len; + int got_requested_address; /* True if client sent the + dhcp-requested-address option. */ + struct shared_network *shared_network; struct option_state *options; @@ -199,6 +202,10 @@ struct lease_state { int max_message_size; u_int32_t expiry, renewal, rebind; struct data_string filename, server_name; + int got_requested_address; + int got_server_identifier; + struct shared_network *shared_network; /* Shared network of interface + on which request arrived. */ u_int32_t xid; u_int16_t secs;