Skip to content

Commit

Permalink
uefi: Replace definition of MacAddress with a re-export from uefi-raw
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Feb 17, 2025
1 parent ec4b45c commit d37b153
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions uefi/src/proto/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
pub mod pxe;
pub mod snp;

pub use uefi_raw::MacAddress;

/// Represents an IPv4/v6 address.
///
/// Corresponds to the `EFI_IP_ADDRESS` type in the C API.
Expand All @@ -32,10 +34,3 @@ impl IpAddress {
Self(ip_addr)
}
}

/// Represents a MAC (media access control) address.
///
/// Corresponds to the `EFI_MAC_ADDRESS` type in the C API.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
#[repr(C)]
pub struct MacAddress(pub [u8; 32]);

0 comments on commit d37b153

Please sign in to comment.