@@ -411,7 +411,7 @@ impl BaseCode {
411
411
* b = octet;
412
412
}
413
413
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.
415
415
return Err ( ReadDirParseError ) ;
416
416
}
417
417
let ip_address = IpAddress :: new_v4 ( buffer) ;
@@ -730,13 +730,13 @@ pub struct Server {
730
730
pub ty : u16 ,
731
731
accept_any_response : bool ,
732
732
_reserved : u8 ,
733
- /// The ip address of the server
733
+ /// The IP address of the server
734
734
ip_addr : IpAddress ,
735
735
}
736
736
737
737
impl Server {
738
738
/// 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
740
740
/// accepted.
741
741
pub fn new ( ty : u16 , ip_addr : Option < IpAddress > ) -> Self {
742
742
Self {
@@ -747,7 +747,7 @@ impl Server {
747
747
}
748
748
}
749
749
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
751
751
/// address of a Boot Server whose responses should be accepted.
752
752
pub fn ip_addr ( & self ) -> Option < & IpAddress > {
753
753
if self . accept_any_response {
@@ -846,7 +846,7 @@ impl IpFilter {
846
846
}
847
847
}
848
848
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
850
850
/// enabled. Maybe be multicast or unicast.
851
851
pub fn ip_list ( & self ) -> & [ IpAddress ] {
852
852
& self . ip_list [ ..usize:: from ( self . ip_cnt ) ]
@@ -857,7 +857,7 @@ bitflags! {
857
857
/// IP receive filters.
858
858
#[ repr( transparent) ]
859
859
pub struct IpFilters : u8 {
860
- /// Enable the Station ip address.
860
+ /// Enable the Station IP address.
861
861
const STATION_IP = 0x01 ;
862
862
/// Enable IPv4 broadcast addresses.
863
863
const BROADCAST = 0x02 ;
@@ -1148,7 +1148,7 @@ pub struct Mode {
1148
1148
// EFI_PXE_BASE_CODE_ARP_ENTRY
1149
1149
#[ repr( C ) ]
1150
1150
pub struct ArpEntry {
1151
- /// The ip address.
1151
+ /// The IP address.
1152
1152
pub ip_addr : IpAddress ,
1153
1153
/// The mac address of the device that is addressed by [`Self::ip_addr`].
1154
1154
pub mac_addr : MacAddress ,
0 commit comments