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