X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FUdp4Dxe%2FUdp4Main.c;h=db1c4fdb87506a49ea73745eb62e65e8954f8528;hb=216f79703b8cb8dc65abdd768bedb2bcdbc1a1f8;hp=5002f6f17f468f5a21a293886ee42d3ea3c7ce9e;hpb=f6b7393ceb34c9b3a27434268bf2ce517047641f;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Main.c b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Main.c index 5002f6f17f..db1c4fdb87 100644 --- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Main.c +++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Main.c @@ -1,7 +1,7 @@ /** @file -Copyright (c) 2006 - 2009, Intel Corporation.
-All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -33,11 +33,11 @@ EFI_UDP4_PROTOCOL mUdp4Protocol = { optionally to retrieve the operational mode data of underlying networks or drivers. - @param This Pointer to the EFI_UDP4_PROTOCOL instance. - @param Udp4ConfigData Pointer to the buffer to receive the current configuration data. - @param Ip4ModeData Pointer to the EFI IPv4 Protocol mode data structure. - @param MnpConfigData Pointer to the managed network configuration data structure. - @param SnpModeData Pointer to the simple network mode data structure. + @param[in] This Pointer to the EFI_UDP4_PROTOCOL instance. + @param[out] Udp4ConfigData Pointer to the buffer to receive the current configuration data. + @param[out] Ip4ModeData Pointer to the EFI IPv4 Protocol mode data structure. + @param[out] MnpConfigData Pointer to the managed network configuration data structure. + @param[out] SnpModeData Pointer to the simple network mode data structure. @retval EFI_SUCCESS The mode data was read. @retval EFI_NOT_STARTED When Udp4ConfigData is queried, no configuration data is @@ -79,7 +79,7 @@ Udp4GetModeData ( CopyMem (Udp4ConfigData, &Instance->ConfigData, sizeof (*Udp4ConfigData)); } - Ip = Instance->IpInfo->Ip; + Ip = Instance->IpInfo->Ip.Ip4; // // Get the underlying Ip4ModeData, MnpConfigData and SnpModeData. @@ -357,7 +357,7 @@ Udp4Groups ( return EFI_NOT_STARTED; } - Ip = Instance->IpInfo->Ip; + Ip = Instance->IpInfo->Ip.Ip4; OldTpl = gBS->RaiseTPL (TPL_CALLBACK); @@ -457,7 +457,7 @@ Udp4Routes ( return EFI_NOT_STARTED; } - Ip = Instance->IpInfo->Ip; + Ip = Instance->IpInfo->Ip.Ip4; // // Invoke the Ip instance the Udp4 instance consumes to do the actual operation. @@ -586,7 +586,7 @@ Udp4Transmit ( // Udp4Header->SrcPort = HTONS (ConfigData->StationPort); Udp4Header->DstPort = HTONS (ConfigData->RemotePort); - Udp4Header->Length = HTONS (Packet->TotalSize); + Udp4Header->Length = HTONS ((UINT16) Packet->TotalSize); Udp4Header->Checksum = 0; UdpSessionData = TxData->UdpSessionData; @@ -900,7 +900,7 @@ Udp4Poll ( } Instance = UDP4_INSTANCE_DATA_FROM_THIS (This); - Ip = Instance->IpInfo->Ip; + Ip = Instance->IpInfo->Ip.Ip4; // // Invode the Ip instance consumed by the udp instance to do the poll operation.