Skip to content

Commit 892d3dc

Browse files
Freax13GabrielMajeri
authored andcommitted
capitalize "IP"
1 parent 0efe446 commit 892d3dc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/proto/network/pxe.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ impl BaseCode {
411411
*b = octet;
412412
}
413413
if octets.next().is_some() {
414-
// The ip should have exact 4 octets, not more.
414+
// The IP should have exact 4 octets, not more.
415415
return Err(ReadDirParseError);
416416
}
417417
let ip_address = IpAddress::new_v4(buffer);
@@ -730,13 +730,13 @@ pub struct Server {
730730
pub ty: u16,
731731
accept_any_response: bool,
732732
_reserved: u8,
733-
/// The ip address of the server
733+
/// The IP address of the server
734734
ip_addr: IpAddress,
735735
}
736736

737737
impl Server {
738738
/// Construct a `Server` for a Boot Server reply type. If `ip_addr` is not
739-
/// `None` only Boot Server replies with matching the ip address will be
739+
/// `None` only Boot Server replies with matching the IP address will be
740740
/// accepted.
741741
pub fn new(ty: u16, ip_addr: Option<IpAddress>) -> Self {
742742
Self {
@@ -747,7 +747,7 @@ impl Server {
747747
}
748748
}
749749

750-
/// Returns a `None` if the any response should be accepted or the ip
750+
/// Returns a `None` if the any response should be accepted or the IP
751751
/// address of a Boot Server whose responses should be accepted.
752752
pub fn ip_addr(&self) -> Option<&IpAddress> {
753753
if self.accept_any_response {
@@ -846,7 +846,7 @@ impl IpFilter {
846846
}
847847
}
848848

849-
/// A list of ip addresses other than the Station Ip that should be
849+
/// A list of IP addresses other than the Station Ip that should be
850850
/// enabled. Maybe be multicast or unicast.
851851
pub fn ip_list(&self) -> &[IpAddress] {
852852
&self.ip_list[..usize::from(self.ip_cnt)]
@@ -857,7 +857,7 @@ bitflags! {
857857
/// IP receive filters.
858858
#[repr(transparent)]
859859
pub struct IpFilters: u8 {
860-
/// Enable the Station ip address.
860+
/// Enable the Station IP address.
861861
const STATION_IP = 0x01;
862862
/// Enable IPv4 broadcast addresses.
863863
const BROADCAST = 0x02;
@@ -1148,7 +1148,7 @@ pub struct Mode {
11481148
// EFI_PXE_BASE_CODE_ARP_ENTRY
11491149
#[repr(C)]
11501150
pub struct ArpEntry {
1151-
/// The ip address.
1151+
/// The IP address.
11521152
pub ip_addr: IpAddress,
11531153
/// The mac address of the device that is addressed by [`Self::ip_addr`].
11541154
pub mac_addr: MacAddress,

uefi-test-runner/src/proto/network.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn test(image: Handle, bt: &BootServices) {
5959

6060
base_code
6161
.set_ip_filter(&IpFilter::new(IpFilters::STATION_IP, &[]))
62-
.expect("failed to set ip filter");
62+
.expect("failed to set IP filter");
6363

6464
const EXAMPLE_SERVICE_PORT: u16 = 21572;
6565

0 commit comments

Comments
 (0)