From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8D8E721967BE3 for ; Mon, 12 Jun 2017 23:01:32 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2017 23:02:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,336,1493708400"; d="scan'208";a="867350196" Received: from jiaxinwu-mobl2.ccr.corp.intel.com ([10.239.196.88]) by FMSMGA003.fm.intel.com with ESMTP; 12 Jun 2017 23:02:45 -0700 From: Jiaxin Wu To: edk2-devel@lists.01.org Cc: Ye Ting , Fu Siyuan , Wu Jiaxin Date: Tue, 13 Jun 2017 14:02:42 +0800 Message-Id: <1497333762-18940-3-git-send-email-jiaxin.wu@intel.com> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1497333762-18940-1-git-send-email-jiaxin.wu@intel.com> References: <1497333762-18940-1-git-send-email-jiaxin.wu@intel.com> Subject: [Patch 2/2] NetworkPkg: Typo fix and comments correction X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2017 06:01:32 -0000 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 --- NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c | 6 +++--- NetworkPkg/TcpDxe/Socket.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c index 7575b79..7c7acc7 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -754,11 +754,11 @@ 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. @param[in] Context Pointer to the IP6 configuration instance data. @@ -894,11 +894,11 @@ Ip6ManualAddrDadCallback ( @retval EFI_SUCCESS The specified configuration data for the EFI IPv6 network stack was set. **/ EFI_STATUS -Ip6ConfigSetMaunualAddress ( +Ip6ConfigSetManualAddress ( IN IP6_CONFIG_INSTANCE *Instance, IN UINTN DataSize, IN VOID *Data ) { @@ -2216,11 +2216,11 @@ Ip6ConfigInitInstance ( DataItem->DataSize = sizeof (Instance->DadXmits); Instance->DadXmits.DupAddrDetectTransmits = IP6_CONFIG_DEFAULT_DAD_XMITS; 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]; DataItem->SetData = Ip6ConfigSetGateway; DataItem->Status = EFI_NOT_FOUND; diff --git a/NetworkPkg/TcpDxe/Socket.h b/NetworkPkg/TcpDxe/Socket.h index 371e9ab..f7f4a7a 100644 --- a/NetworkPkg/TcpDxe/Socket.h +++ b/NetworkPkg/TcpDxe/Socket.h @@ -359,11 +359,11 @@ typedef enum { /// /// The buffer structure of rcvd data and send data used by socket. /// 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; /** The handler of protocol for request from socket. @@ -423,12 +423,12 @@ typedef struct _SOCK_INIT_DATA { SOCK_TYPE Type; UINT8 State; 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 // @@ -448,11 +448,11 @@ typedef struct _SOCK_INIT_DATA { EFI_HANDLE DriverBinding; ///< The driver binding handle } 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 EFI_TCP6_PROTOCOL Tcp6Protocol; ///< Tcp6 protocol } NET_PROTOCOL; @@ -500,11 +500,11 @@ struct _TCP_SOCKET { // Interface for low level protocol // 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. // SOCK_CREATE_CALLBACK CreateCallback; ///< Callback after created SOCK_DESTROY_CALLBACK DestroyCallback; ///< Callback before destroied -- 1.9.5.msysgit.1