Skip to content

Commit 885b3ff

Browse files
uefi-raw: Add PxeBaseCodeArpEntry and PxeBaseCodeRouteEntry
1 parent 68f42c2 commit 885b3ff

File tree

1 file changed

+16
-1
lines changed
  • uefi-raw/src/protocol/network

1 file changed

+16
-1
lines changed

uefi-raw/src/protocol/network/pxe.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
// SPDX-License-Identifier: MIT OR Apache-2.0
22

3-
use crate::Char8;
3+
use crate::{Char8, IpAddress, MacAddress};
44
use core::fmt::{self, Debug, Formatter};
55

6+
#[derive(Clone, Copy, Debug)]
7+
#[repr(C)]
8+
pub struct PxeBaseCodeArpEntry {
9+
pub ip_addr: IpAddress,
10+
pub mac_addr: MacAddress,
11+
}
12+
13+
#[derive(Clone, Copy, Debug)]
14+
#[repr(C)]
15+
pub struct PxeBaseCodeRouteEntry {
16+
pub ip_addr: IpAddress,
17+
pub subnet_mask: IpAddress,
18+
pub gw_addr: IpAddress,
19+
}
20+
621
#[derive(Clone, Debug)]
722
#[repr(C)]
823
pub struct PxeBaseCodeIcmpError {

0 commit comments

Comments
 (0)