]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Remember in lease state
authorTed Lemon <source@isc.org>
Thu, 6 May 1999 20:25:41 +0000 (20:25 +0000)
committerTed Lemon <source@isc.org>
Thu, 6 May 1999 20:25:41 +0000 (20:25 +0000)
 - 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.

includes/dhcpd.h

index ae006257c1a70023c9b1d104dcc840df0f33958d..8bd4bbc1dc19fbc0a10c9907201dc4dfcc857357 100644 (file)
@@ -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;