/** @file\r
\r
-Copyright (c) 2006 - 2009, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 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
CopyMem (Udp4ConfigData, &Instance->ConfigData, sizeof (*Udp4ConfigData));\r
}\r
\r
- Ip = Instance->IpInfo->Ip;\r
+ Ip = Instance->IpInfo->Ip.Ip4;\r
\r
//\r
// Get the underlying Ip4ModeData, MnpConfigData and SnpModeData.\r
return EFI_NOT_STARTED;\r
}\r
\r
- Ip = Instance->IpInfo->Ip;\r
+ Ip = Instance->IpInfo->Ip.Ip4;\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
return EFI_NOT_STARTED;\r
}\r
\r
- Ip = Instance->IpInfo->Ip;\r
+ Ip = Instance->IpInfo->Ip.Ip4;\r
\r
//\r
// Invoke the Ip instance the Udp4 instance consumes to do the actual operation.\r
//\r
Udp4Header->SrcPort = HTONS (ConfigData->StationPort);\r
Udp4Header->DstPort = HTONS (ConfigData->RemotePort);\r
- Udp4Header->Length = HTONS (Packet->TotalSize);\r
+ Udp4Header->Length = HTONS ((UINT16) Packet->TotalSize);\r
Udp4Header->Checksum = 0;\r
\r
UdpSessionData = TxData->UdpSessionData;\r
}\r
\r
Instance = UDP4_INSTANCE_DATA_FROM_THIS (This);\r
- Ip = Instance->IpInfo->Ip;\r
+ Ip = Instance->IpInfo->Ip.Ip4;\r
\r
//\r
// Invode the Ip instance consumed by the udp instance to do the poll operation.\r