Skip to content

Commit 20c31f1

Browse files
authored
Merge pull request #1547 from nicholasbishop/bishop-raw-macaddr
uefi: Replace definition of MacAddress with a re-export from uefi-raw
2 parents 10952ab + d37b153 commit 20c31f1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: uefi/src/proto/network/mod.rs

+2-7
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)