Skip to content

Commit d37b153

Browse files
uefi: Replace definition of MacAddress with a re-export from uefi-raw
1 parent ec4b45c commit d37b153

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

uefi/src/proto/network/mod.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
pub mod pxe;
88
pub mod snp;
99

10+
pub use uefi_raw::MacAddress;
11+
1012
/// Represents an IPv4/v6 address.
1113
///
1214
/// Corresponds to the `EFI_IP_ADDRESS` type in the C API.
@@ -32,10 +34,3 @@ impl IpAddress {
3234
Self(ip_addr)
3335
}
3436
}
35-
36-
/// Represents a MAC (media access control) address.
37-
///
38-
/// Corresponds to the `EFI_MAC_ADDRESS` type in the C API.
39-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
40-
#[repr(C)]
41-
pub struct MacAddress(pub [u8; 32]);

0 commit comments

Comments
 (0)