summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/Ip4Dxe/Ip4Common.h
diff options
context:
space:
mode:
authorAntoine Coeur <coeur@gmx.fr>2020-02-07 02:07:52 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-02-10 22:30:07 +0000
commit6c585b52e52871e52fcf71748534e8a27a308431 (patch)
tree33dd7b11816dcd3a897b9acc224999761abcac2e /NetworkPkg/Ip4Dxe/Ip4Common.h
parentba3b642d5ba5c4703dc6410eb25fe189283659c1 (diff)
downloadedk2-6c585b52e52871e52fcf71748534e8a27a308431.tar.gz
edk2-6c585b52e52871e52fcf71748534e8a27a308431.tar.bz2
edk2-6c585b52e52871e52fcf71748534e8a27a308431.zip
NetworkPkg/Ip4Dxe: Fix various typos
Fix various typos in comments and documentation. Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Cc: Maciej Rabeda <maciej.rabeda@intel.com> Signed-off-by: Antoine Coeur <coeur@gmx.fr> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com> Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com> Message-Id: <20200207010831.9046-40-philmd@redhat.com>
Diffstat (limited to 'NetworkPkg/Ip4Dxe/Ip4Common.h')
-rw-r--r--NetworkPkg/Ip4Dxe/Ip4Common.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/NetworkPkg/Ip4Dxe/Ip4Common.h b/NetworkPkg/Ip4Dxe/Ip4Common.h
index 8fbfd54872..a84602d45a 100644
--- a/NetworkPkg/Ip4Dxe/Ip4Common.h
+++ b/NetworkPkg/Ip4Dxe/Ip4Common.h
@@ -23,7 +23,7 @@ typedef struct _IP4_SERVICE IP4_SERVICE;
#define IP4_LINK_PROMISC 0x00000004
//
-// IP4 address cast type classfication. Keep it true that any
+// IP4 address cast type classification. Keep it true that any
// type bigger than or equal to LOCAL_BROADCAST is broadcast.
//
#define IP4_PROMISCUOUS 1
@@ -63,13 +63,13 @@ typedef struct _IP4_SERVICE IP4_SERVICE;
#define IP4_IS_BROADCAST(CastType) ((CastType) >= IP4_LOCAL_BROADCAST)
///
-/// Conver the Microsecond to second. IP transmit/receive time is
+/// Convert the Microsecond to second. IP transmit/receive time is
/// in the unit of microsecond. IP ticks once per second.
///
#define IP4_US_TO_SEC(Us) (((Us) + 999999) / 1000000)
/**
- Return the cast type (Unicast/Boradcast) specific to an
+ Return the cast type (Unicast/Broadcast) specific to an
interface. All the addresses are host byte ordered.
@param[in] IpAddr The IP address to classify in host byte order
@@ -77,7 +77,7 @@ typedef struct _IP4_SERVICE IP4_SERVICE;
@return The cast type of this IP address specific to the interface.
@retval IP4_LOCAL_HOST The IpAddr equals to the interface's address
- @retval IP4_SUBNET_BROADCAST The IpAddr is a directed subnet boradcast to the
+ @retval IP4_SUBNET_BROADCAST The IpAddr is a directed subnet broadcast to the
interface
@retval IP4_NET_BROADCAST The IpAddr is a network broadcast to the interface
@retval 0 Otherwise.
@@ -146,7 +146,7 @@ Ip4FindNet (
Find an interface of the service with the same Ip/Netmask pair.
@param[in] IpSb Ip4 service binding instance
- @param[in] Ip The Ip adress to find (host byte order)
+ @param[in] Ip The Ip address to find (host byte order)
@param[in] Netmask The network to find (host byte order)
@return The IP4_INTERFACE point if found, otherwise NULL
@@ -199,10 +199,10 @@ Ip4NtohHead (
/**
Validate that Ip/Netmask pair is OK to be used as station
address. Only continuous netmasks are supported. and check
- that StationAddress is a unicast address on the newtwork.
+ that StationAddress is a unicast address on the network.
@param[in] Ip The IP address to validate.
- @param[in] Netmask The netmaks of the IP.
+ @param[in] Netmask The netmask of the IP.
@retval TRUE The Ip/Netmask pair is valid.
@retval FALSE The Ip/Netmask pair is invalid.