From: Jiaxin Wu Date: Thu, 16 Mar 2017 01:59:05 +0000 (+0800) Subject: NetworkPkg: Typo fix and comments correction X-Git-Tag: edk2-stable201903~3937 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c314970984065c98a56097443ae38d57a27bc73b NetworkPkg: Typo fix and comments correction warter -> water Maunual -> Manual TCP and UDP --> TCP4 and TCP6 TCP or UDP --> TCP4 or TCP6 Cc: Ye Ting Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin Reviewed-by: Fu Siyuan --- diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c index 7575b7947d..7c7acc72d5 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -756,7 +756,7 @@ Ip6ConfigSetDadXmits ( /** The callback function for Ip6SetAddr. The prototype is defined as IP6_DAD_CALLBACK. It is called after Duplicate Address Detection is performed - for the manual address set by Ip6ConfigSetMaunualAddress. + for the manual address set by Ip6ConfigSetManualAddress. @param[in] IsDadPassed If TRUE, Duplicate Address Detection passed. @param[in] TargetAddress The tentative IPv6 address to be checked. @@ -896,7 +896,7 @@ Ip6ManualAddrDadCallback ( **/ EFI_STATUS -Ip6ConfigSetMaunualAddress ( +Ip6ConfigSetManualAddress ( IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data @@ -2218,7 +2218,7 @@ Ip6ConfigInitInstance ( SET_DATA_ATTRIB (DataItem->Attribute, DATA_ATTRIB_SIZE_FIXED); DataItem = &Instance->DataItem[Ip6ConfigDataTypeManualAddress]; - DataItem->SetData = Ip6ConfigSetMaunualAddress; + DataItem->SetData = Ip6ConfigSetManualAddress; DataItem->Status = EFI_NOT_FOUND; DataItem = &Instance->DataItem[Ip6ConfigDataTypeGateway]; diff --git a/NetworkPkg/TcpDxe/Socket.h b/NetworkPkg/TcpDxe/Socket.h index 371e9abd84..f7f4a7ad86 100644 --- a/NetworkPkg/TcpDxe/Socket.h +++ b/NetworkPkg/TcpDxe/Socket.h @@ -361,7 +361,7 @@ typedef enum { /// typedef struct _SOCK_BUFFER { UINT32 HighWater; ///< The buffersize upper limit of sock_buffer - UINT32 LowWater; ///< The low warter mark of sock_buffer + UINT32 LowWater; ///< The low water mark of sock_buffer NET_BUF_QUEUE *DataQueue; ///< The queue to buffer data } SOCK_BUFFER; @@ -425,8 +425,8 @@ typedef struct _SOCK_INIT_DATA { SOCKET *Parent; ///< The parent of this socket UINT32 BackLog; ///< The connection limit for listening socket - UINT32 SndBufferSize; ///< The high warter mark of send buffer - UINT32 RcvBufferSize; ///< The high warter mark of receive buffer + UINT32 SndBufferSize; ///< The high water mark of send buffer + UINT32 RcvBufferSize; ///< The high water mark of receive buffer UINT8 IpVersion; VOID *Protocol; ///< The pointer to protocol function template ///< wanted to install on socket @@ -450,7 +450,7 @@ typedef struct _SOCK_INIT_DATA { } SOCK_INIT_DATA; /// -/// The union type of TCP and UDP protocol. +/// The union type of TCP4 and TCP6 protocol. /// typedef union _NET_PROTOCOL { EFI_TCP4_PROTOCOL Tcp4Protocol; ///< Tcp4 protocol @@ -502,7 +502,7 @@ struct _TCP_SOCKET { SOCK_PROTO_HANDLER ProtoHandler; ///< The request handler of protocol UINT8 ProtoReserved[PROTO_RESERVED_LEN]; ///< Data fields reserved for protocol UINT8 IpVersion; - NET_PROTOCOL NetProtocol; ///< TCP or UDP protocol socket used + NET_PROTOCOL NetProtocol; ///< TCP4 or TCP6 protocol socket used // // Callbacks after socket is created and before socket is to be destroyed. //