Jarred Allen преди 2 години
родител
ревизия
6a4c549a94
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 2 0
      src/socket/dhcpv4.rs
  2. 4 0
      src/wire/dhcpv4.rs

+ 2 - 0
src/socket/dhcpv4.rs

@@ -860,6 +860,8 @@ mod test {
         parameter_request_list: None,
         dns_servers: None,
         max_size: None,
+        renew_duration: None,
+        rebind_duration: None,
         lease_duration: None,
         additional_options: &[],
     };

+ 4 - 0
src/wire/dhcpv4.rs

@@ -1162,6 +1162,8 @@ mod test {
             parameter_request_list: None,
             dns_servers: None,
             max_size: None,
+            renew_duration: None,
+            rebind_duration: None,
             lease_duration: Some(0xffff_ffff), // Infinite lease
             additional_options: &[],
         }
@@ -1181,6 +1183,8 @@ mod test {
             broadcast: false,
             secs: 0,
             max_size: Some(DHCP_SIZE),
+            renew_duration: None,
+            rebind_duration: None,
             lease_duration: None,
             requested_ip: Some(IP_NULL),
             client_identifier: Some(CLIENT_MAC),