]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Main.c
Use Mde library and definition instead of some native definitions in NetLib, to simpl...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Tcp4Dxe / Tcp4Main.c
index 24f97eb93bc013086134c8b1bf6ebf7d225150a4..8fe893e48a570c61e1f190d816a4b0776d6f4bdd 100644 (file)
@@ -156,7 +156,7 @@ Tcp4Configure (
   //\r
   if (NULL != TcpConfigData) {\r
 \r
-    NetCopyMem (&Ip, &TcpConfigData->AccessPoint.RemoteAddress, sizeof (IP4_ADDR));\r
+    CopyMem (&Ip, &TcpConfigData->AccessPoint.RemoteAddress, sizeof (IP4_ADDR));\r
     if ((Ip != 0) && !Ip4IsUnicast (NTOHL (Ip), 0)) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
@@ -168,8 +168,8 @@ Tcp4Configure (
 \r
     if (!TcpConfigData->AccessPoint.UseDefaultAddress) {\r
 \r
-      NetCopyMem (&Ip, &TcpConfigData->AccessPoint.StationAddress, sizeof (IP4_ADDR));\r
-      NetCopyMem (&SubnetMask, &TcpConfigData->AccessPoint.SubnetMask, sizeof (IP4_ADDR));\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
         return EFI_INVALID_PARAMETER;\r
       }\r