]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Typo fix and comments correction
authorJiaxin Wu <jiaxin.wu@intel.com>
Thu, 16 Mar 2017 01:59:05 +0000 (09:59 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Wed, 14 Jun 2017 02:51:50 +0000 (10:51 +0800)
warter -> water
Maunual -> Manual
TCP and UDP --> TCP4 and TCP6
TCP or UDP --> TCP4 or TCP6

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c
NetworkPkg/TcpDxe/Socket.h

index 7575b7947d9989d724ff590abe117b0ce73eb596..7c7acc72d5576665ab053069212eb52dd8e31301 100644 (file)
@@ -756,7 +756,7 @@ Ip6ConfigSetDadXmits (
 /**\r
   The callback function for Ip6SetAddr. The prototype is defined\r
   as IP6_DAD_CALLBACK. It is called after Duplicate Address Detection is performed\r
-  for the manual address set by Ip6ConfigSetMaunualAddress.\r
+  for the manual address set by Ip6ConfigSetManualAddress.\r
 \r
   @param[in]     IsDadPassed   If TRUE, Duplicate Address Detection passed.\r
   @param[in]     TargetAddress The tentative IPv6 address to be checked.\r
@@ -896,7 +896,7 @@ Ip6ManualAddrDadCallback (
 \r
 **/\r
 EFI_STATUS\r
-Ip6ConfigSetMaunualAddress (\r
+Ip6ConfigSetManualAddress (\r
   IN IP6_CONFIG_INSTANCE  *Instance,\r
   IN UINTN                DataSize,\r
   IN VOID                 *Data\r
@@ -2218,7 +2218,7 @@ Ip6ConfigInitInstance (
   SET_DATA_ATTRIB (DataItem->Attribute, DATA_ATTRIB_SIZE_FIXED);\r
 \r
   DataItem           = &Instance->DataItem[Ip6ConfigDataTypeManualAddress];\r
-  DataItem->SetData  = Ip6ConfigSetMaunualAddress;\r
+  DataItem->SetData  = Ip6ConfigSetManualAddress;\r
   DataItem->Status   = EFI_NOT_FOUND;\r
 \r
   DataItem           = &Instance->DataItem[Ip6ConfigDataTypeGateway];\r
index 371e9abd8455851f562f41aba6a5aed6b60a6516..f7f4a7ad86640fc0690cbe7a8714bd07c89ba62c 100644 (file)
@@ -361,7 +361,7 @@ typedef enum {
 ///\r
 typedef struct _SOCK_BUFFER {\r
   UINT32        HighWater;  ///< The buffersize upper limit of sock_buffer\r
-  UINT32        LowWater;   ///< The low warter mark of sock_buffer\r
+  UINT32        LowWater;   ///< The low water mark of sock_buffer\r
   NET_BUF_QUEUE *DataQueue; ///< The queue to buffer data\r
 } SOCK_BUFFER;\r
 \r
@@ -425,8 +425,8 @@ typedef struct _SOCK_INIT_DATA {
 \r
   SOCKET                 *Parent;        ///< The parent of this socket\r
   UINT32                 BackLog;        ///< The connection limit for listening socket\r
-  UINT32                 SndBufferSize;  ///< The high warter mark of send buffer\r
-  UINT32                 RcvBufferSize;  ///< The high warter mark of receive buffer\r
+  UINT32                 SndBufferSize;  ///< The high water mark of send buffer\r
+  UINT32                 RcvBufferSize;  ///< The high water mark of receive buffer\r
   UINT8                  IpVersion;\r
   VOID                   *Protocol;      ///< The pointer to protocol function template\r
                                          ///< wanted to install on socket\r
@@ -450,7 +450,7 @@ typedef struct _SOCK_INIT_DATA {
 } SOCK_INIT_DATA;\r
 \r
 ///\r
-///  The union type of TCP and UDP protocol.\r
+///  The union type of TCP4 and TCP6 protocol.\r
 ///\r
 typedef union _NET_PROTOCOL {\r
   EFI_TCP4_PROTOCOL      Tcp4Protocol;    ///< Tcp4 protocol\r
@@ -502,7 +502,7 @@ struct _TCP_SOCKET {
   SOCK_PROTO_HANDLER        ProtoHandler;     ///< The request handler of protocol\r
   UINT8                     ProtoReserved[PROTO_RESERVED_LEN];  ///< Data fields reserved for protocol\r
   UINT8                     IpVersion;\r
-  NET_PROTOCOL              NetProtocol;                        ///< TCP or UDP protocol socket used\r
+  NET_PROTOCOL              NetProtocol;                        ///< TCP4 or TCP6 protocol socket used\r
   //\r
   // Callbacks after socket is created and before socket is to be destroyed.\r
   //\r