From 67a58d0ffddc625bda615b9fb2b335e8d7ab979f Mon Sep 17 00:00:00 2001 From: yshang1 Date: Tue, 9 Oct 2007 09:30:52 +0000 Subject: Clean up Network Components to support GCC build. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4062 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c | 8 ++++---- MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c | 4 ++-- MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'MdeModulePkg/Universal/Network/PxeBcDxe') diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c index d14dbd9152..63d11d2fe1 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Bc.c @@ -1662,7 +1662,7 @@ IpFilter ( Enable = EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST; for (Index = 0; Index < Filter->IpCnt; ++Index) { - PxebcMode->IpFilter.IpList[Index] = Filter->IpList[Index]; + CopyMem (&PxebcMode->IpFilter.IpList[Index], &Filter->IpList[Index], sizeof (EFI_IP_ADDRESS)); if (IS_MULTICAST (&Filter->IpList[Index])) { EFI_IP_ADDRESS *TmpIp; @@ -1674,7 +1674,7 @@ IpFilter ( // if (!Index2) { - TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup; + TmpIp = (EFI_IP_ADDRESS *) &AllSystemsGroup; --Index; } else { TmpIp = (EFI_IP_ADDRESS *) &Filter->IpList[Index]; @@ -2009,8 +2009,8 @@ BcSetStationIP ( goto RELEASE_LOCK; } - PxebcMode->StationIp = *StationIpPtr; - PxebcMode->SubnetMask = *SubnetMaskPtr; + CopyMem (&PxebcMode->StationIp, StationIpPtr, sizeof (EFI_IP_ADDRESS)); + CopyMem (&PxebcMode->SubnetMask, SubnetMaskPtr, sizeof (EFI_IP_ADDRESS)); Private->GoodStationIp = TRUE; RELEASE_LOCK: diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c index b065a53f3a..d9fa36896d 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c @@ -1101,8 +1101,8 @@ MtftpDownload ( Filter.Filters = EFI_PXE_BASE_CODE_IP_FILTER_BROADCAST; Filter.IpCnt = 2; - Filter.IpList[0] = Private->EfiBc.Mode->StationIp; - Filter.IpList[1] = MtftpInfoPtr->MCastIp; + CopyMem (&Filter.IpList[0], &Private->EfiBc.Mode->StationIp, sizeof (EFI_IP_ADDRESS)); + CopyMem (&Filter.IpList[1], &MtftpInfoPtr->MCastIp, sizeof (EFI_IP_ADDRESS)); if ((Status = IpFilter (Private, &Filter)) != EFI_SUCCESS) { return Status; diff --git a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c index fcb55acfa0..eb2951abd8 100644 --- a/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c +++ b/MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_udp.c @@ -317,7 +317,7 @@ UdpRead ( if (DestIpPtr == NULL) { DestIpPtr = &TmpDestIp; - TmpDestIp = Private->EfiBc.Mode->StationIp; + CopyMem (&TmpDestIp, &Private->EfiBc.Mode->StationIp, sizeof (EFI_IP_ADDRESS)); } #if SUPPORT_IPV6 @@ -384,7 +384,7 @@ UdpRead ( DEBUG ( (DEBUG_INFO, "\nUdpRead() Hdrs.Udpv4PseudoHeader == %Xh", - Hdrs.Udpv4PseudoHeader) + &Hdrs.Udpv4PseudoHeader) ); DEBUG ( (DEBUG_INFO, -- cgit v1.2.3