@@ -405,6 +405,9 @@ impl Dhcpv4Socket {
405
405
let mut dhcp_repr = DhcpRepr {
406
406
message_type : DhcpMessageType :: Discover ,
407
407
transaction_id : next_transaction_id,
408
+ secs : 0 ,
409
+ sname : None ,
410
+ boot_file : None ,
408
411
client_hardware_address : ethernet_addr,
409
412
client_ip : Ipv4Address :: UNSPECIFIED ,
410
413
your_ip : Ipv4Address :: UNSPECIFIED ,
@@ -420,6 +423,11 @@ impl Dhcpv4Socket {
420
423
max_size : Some ( ( cx. caps . ip_mtu ( ) - MAX_IPV4_HEADER_LEN - UDP_HEADER_LEN ) as u16 ) ,
421
424
lease_duration : None ,
422
425
dns_servers : None ,
426
+ time_offset : None ,
427
+ client_arch_list : None ,
428
+ client_interface_id : None ,
429
+ client_machine_id : None ,
430
+ vendor_class_id : None ,
423
431
} ;
424
432
425
433
let udp_repr = UdpRepr {
@@ -735,6 +743,9 @@ mod test {
735
743
const DHCP_DEFAULT : DhcpRepr = DhcpRepr {
736
744
message_type : DhcpMessageType :: Unknown ( 99 ) ,
737
745
transaction_id : TXID ,
746
+ secs : 0 ,
747
+ sname : None ,
748
+ boot_file : None ,
738
749
client_hardware_address : MY_MAC ,
739
750
client_ip : Ipv4Address :: UNSPECIFIED ,
740
751
your_ip : Ipv4Address :: UNSPECIFIED ,
@@ -750,6 +761,11 @@ mod test {
750
761
dns_servers : None ,
751
762
max_size : None ,
752
763
lease_duration : None ,
764
+ time_offset : None ,
765
+ client_arch_list : None ,
766
+ client_interface_id : None ,
767
+ client_machine_id : None ,
768
+ vendor_class_id : None ,
753
769
} ;
754
770
755
771
const DHCP_DISCOVER : DhcpRepr = DhcpRepr {
0 commit comments