]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Main.c
Update the copyright notice format
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Tcp4Dxe / Tcp4Main.c
index d43a4a4faf0f8edb28b9ffc54e2214a79678e577..c75e732a170224cb276fce323037892415c834ed 100644 (file)
@@ -1,25 +1,18 @@
 /** @file\r
+  Implementation of TCP4 protocol services.\r
 \r
-Copyright (c) 2005 - 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2005 - 2009, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+http://opensource.org/licenses/bsd-license.php<BR>\r
 \r
 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-Module Name:\r
-\r
-  Tcp4Main.c\r
-\r
-Abstract:\r
-\r
-  Implementation of TCP4 protocol services.\r
-\r
-\r
 **/\r
 \r
+\r
 #include "Tcp4Main.h"\r
 \r
 \r
@@ -177,7 +170,7 @@ Tcp4Configure (
   if (NULL != TcpConfigData) {\r
 \r
     CopyMem (&Ip, &TcpConfigData->AccessPoint.RemoteAddress, sizeof (IP4_ADDR));\r
-    if ((Ip != 0) && !Ip4IsUnicast (NTOHL (Ip), 0)) {\r
+    if ((Ip != 0) && !NetIp4IsUnicast (NTOHL (Ip), 0)) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
 \r
@@ -190,7 +183,7 @@ Tcp4Configure (
 \r
       CopyMem (&Ip, &TcpConfigData->AccessPoint.StationAddress, sizeof (IP4_ADDR));\r
       CopyMem (&SubnetMask, &TcpConfigData->AccessPoint.SubnetMask, sizeof (IP4_ADDR));\r
-      if (!Ip4IsUnicast (NTOHL (Ip), 0) || !IP4_IS_VALID_NETMASK (NTOHL (SubnetMask))) {\r
+      if (!NetIp4IsUnicast (NTOHL (Ip), 0) || !IP4_IS_VALID_NETMASK (NTOHL (SubnetMask))) {\r
         return EFI_INVALID_PARAMETER;\r
       }\r
     }\r
@@ -221,9 +214,9 @@ Tcp4Configure (
 /**\r
   Add or delete routing entries.\r
   \r
-  The Routes() function adds or deletes a route from the instance\92s routing table.\r
+  The Routes() function adds or deletes a route from the instance's routing table.\r
   The most specific route is selected by comparing the SubnetAddress with the \r
-  destination IP address\92s arithmetical AND to the SubnetMask.\r
+  destination IP address's arithmetical AND to the SubnetMask.\r
   The default route is added with both SubnetAddress and SubnetMask set to 0.0.0.0. \r
   The default route matches all destination IP addresses if there is no more specific route.\r
   Direct route is added with GatewayAddress set to 0.0.0.0. Packets are sent to \r
@@ -231,9 +224,9 @@ Tcp4Configure (
   cache or it is on the local subnet. If the instance is configured to use default \r
   address, a direct route to the local network will be added automatically.\r
   Each TCP instance has its own independent routing table. Instance that uses the \r
-  default IP address will have a copy of the EFI_IP4_CONFIG_PROTOCOL\92s routing table. \r
+  default IP address will have a copy of the EFI_IP4_CONFIG_PROTOCOL's routing table. \r
   The copy will be updated automatically whenever the IP driver reconfigures its \r
-  instance. As a result, the previous modification to the instance\92s local copy \r
+  instance. As a result, the previous modification to the instance's local copy \r
   will be lost. The priority of checking the route table is specific with IP \r
   implementation and every IP implementation must comply with RFC 1122.\r
 \r
@@ -348,7 +341,7 @@ Tcp4Connect (
   incoming connection on the passive TCP instance. If a remote peer successfully \r
   establishes a connection with this instance, a new TCP instance will be created \r
   and its handle will be returned in ListenToken->NewChildHandle. The newly created \r
-  instance is configured by inheriting the passive instance\92s configuration and is \r
+  instance is configured by inheriting the passive instance's configuration and is \r
   ready for use upon return. The instance is in the Tcp4StateEstablished state.\r
   The ListenToken->CompletionToken.Event will be signaled when a new connection \r
   is accepted, user aborts the listen or connection is reset. This function only \r
@@ -617,12 +610,12 @@ Tcp4Close (
   @retval  EFI_SUCCESS             The asynchronous I/O request is aborted and Token->Event\r
                                    is signaled.\r
   @retval  EFI_INVALID_PARAMETER   This is NULL.\r
-  @retval  EFI_NOT_STARTED         This instance hasn\92t been configured.\r
+  @retval  EFI_NOT_STARTED         This instance hasn's been configured.\r
   @retval  EFI_NO_MAPPING          When using the default address, configuration\r
-                                   (DHCP, BOOTP,RARP, etc.) hasn\92t finished yet.\r
-  @retval  EFI_NOT_FOUND           The asynchronous I/O request isn\92t found in the \r
+                                   (DHCP, BOOTP,RARP, etc.) hasn's finished yet.\r
+  @retval  EFI_NOT_FOUND           The asynchronous I/O request isn's found in the \r
                                    transmission or receive queue. It has either \r
-                                   completed or wasn\92t issued by Transmit() and Receive().\r
+                                   completed or wasn's issued by Transmit() and Receive().\r
   @retval  EFI_UNSUPPORTED         The operation is not supported in current\r
                                    implementation.\r
   \r