]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/TcpDxe/TcpMain.c
Fix GCC hang issue: Point should use directly assignment instead of IP4_COPY_ADDRESS.
[mirror_edk2.git] / NetworkPkg / TcpDxe / TcpMain.c
index 66a09c41eaa77a68a930e5c6e10fbec0ff809179..f79db48af30b6b8be68fd53121e055887a20fe2a 100644 (file)
@@ -2,7 +2,7 @@
   Implementation of EFI_TCP4_PROTOCOL and EFI_TCP6_PROTOCOL.\r
 \r
   (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
-  Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -230,9 +230,9 @@ Tcp4Routes (
   Sock                      = SOCK_FROM_THIS (This);\r
 \r
   RouteInfo.DeleteRoute     = DeleteRoute;\r
-  IP4_COPY_ADDRESS (&RouteInfo.SubnetAddress, &SubnetAddress);\r
-  IP4_COPY_ADDRESS (&RouteInfo.SubnetMask, &SubnetMask);\r
-  IP4_COPY_ADDRESS (&RouteInfo.GatewayAddress, &GatewayAddress);\r
+  RouteInfo.SubnetAddress   = SubnetAddress;\r
+  RouteInfo.SubnetMask      = SubnetMask;\r
+  RouteInfo.GatewayAddress  = GatewayAddress;\r
 \r
   return SockRoute (Sock, &RouteInfo);\r
 }\r