Skip to content

Commit d77e58d

Browse files
committed
rename MacAddr to MacAddress
1 parent f271002 commit d77e58d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/proto/network/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ impl IpAddress {
2929
/// EFI_MAC_ADDRESS
3030
#[derive(Clone, Copy)]
3131
#[repr(C)]
32-
pub struct MacAddr(pub [u8; 32]);
32+
pub struct MacAddress(pub [u8; 32]);

src/proto/network/pxe.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use uefi_macros::{unsafe_guid, Protocol};
77

88
use crate::{CStr8, Char8, Result, Status};
99

10-
use super::{IpAddress, MacAddr};
10+
use super::{IpAddress, MacAddress};
1111

1212
/// PXE Base Code protocol
1313
#[repr(C)]
@@ -67,7 +67,7 @@ pub struct BaseCode {
6767
arp: extern "efiapi" fn(
6868
this: &Self,
6969
ip_addr: &IpAddress,
70-
mac_addr: Option<&mut MacAddr>,
70+
mac_addr: Option<&mut MacAddress>,
7171
) -> Status,
7272
set_parameters: extern "efiapi" fn(
7373
this: &Self,
@@ -585,7 +585,7 @@ impl BaseCode {
585585
}
586586

587587
/// Uses the ARP protocol to resolve a MAC address.
588-
pub fn arp(&mut self, ip_addr: &IpAddress, mac_addr: Option<&mut MacAddr>) -> Result {
588+
pub fn arp(&mut self, ip_addr: &IpAddress, mac_addr: Option<&mut MacAddress>) -> Result {
589589
(self.arp)(self, ip_addr, mac_addr).into()
590590
}
591591

@@ -1194,7 +1194,7 @@ pub struct ArpEntry {
11941194
/// The ip address.
11951195
pub ip_addr: IpAddress,
11961196
/// The mac address of the device that is addressed by [`Self::ip_addr`].
1197-
pub mac_addr: MacAddr,
1197+
pub mac_addr: MacAddress,
11981198
}
11991199

12001200
/// An entry for the route table found in [`Mode::route_table`]

0 commit comments

Comments
 (0)