Skip to content

Commit 7064337

Browse files
committed
Added PXE support
1 parent c8141bb commit 7064337

File tree

4 files changed

+507
-9
lines changed

4 files changed

+507
-9
lines changed

.github/workflows/clippy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
- uses: actions-rs/clippy-check@v1
2424
with:
2525
token: ${{ secrets.GITHUB_TOKEN }}
26-
args: --tests --examples -- -D warnings
26+
args: --tests --examples -- -D warnings -A clippy::large-enum-variant

src/socket/dhcpv4.rs

+14
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ impl Dhcpv4Socket {
405405
let mut dhcp_repr = DhcpRepr {
406406
message_type: DhcpMessageType::Discover,
407407
transaction_id: next_transaction_id,
408+
sname: None,
409+
boot_file: None,
408410
client_hardware_address: ethernet_addr,
409411
client_ip: Ipv4Address::UNSPECIFIED,
410412
your_ip: Ipv4Address::UNSPECIFIED,
@@ -420,6 +422,11 @@ impl Dhcpv4Socket {
420422
max_size: Some((cx.caps.ip_mtu() - MAX_IPV4_HEADER_LEN - UDP_HEADER_LEN) as u16),
421423
lease_duration: None,
422424
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,
423430
};
424431

425432
let udp_repr = UdpRepr {
@@ -735,6 +742,8 @@ mod test {
735742
const DHCP_DEFAULT: DhcpRepr = DhcpRepr {
736743
message_type: DhcpMessageType::Unknown(99),
737744
transaction_id: TXID,
745+
sname: None,
746+
boot_file: None,
738747
client_hardware_address: MY_MAC,
739748
client_ip: Ipv4Address::UNSPECIFIED,
740749
your_ip: Ipv4Address::UNSPECIFIED,
@@ -750,6 +759,11 @@ mod test {
750759
dns_servers: None,
751760
max_size: None,
752761
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,
753767
};
754768

755769
const DHCP_DISCOVER: DhcpRepr = DhcpRepr {

0 commit comments

Comments
 (0)