/** @file\r
Dhcp6 internal functions implementation.\r
\r
+ (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
)\r
{\r
EFI_STATUS Status;\r
- EFI_DHCP6_STATE State;\r
UINT8 *Option;\r
UINT8 *IaInnerOpt;\r
UINT16 IaInnerLen;\r
//\r
// See details in the section-18.1.8 of rfc-3315.\r
//\r
- State = Dhcp6Init;\r
Option = Dhcp6SeekIaOption (\r
Packet->Dhcp6.Option,\r
Packet->Length - sizeof (EFI_DHCP6_HEADER),\r
{\r
EFI_STATUS Status;\r
UINT8 *Option;\r
- UINT16 StsCode;\r
BOOLEAN Timeout;\r
\r
ASSERT(Instance->Config);\r
ASSERT(Instance->IaCb.Ia);\r
\r
Timeout = FALSE;\r
- StsCode = Dhcp6StsSuccess;\r
\r
//\r
// If the client does receives a valid reply message that includes a rapid\r
/** @file\r
Implementation of EFI_IP6_PROTOCOL protocol interfaces.\r
\r
+ (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
)\r
{\r
IP6_PROTOCOL *IpInstance;\r
- IP6_SERVICE *IpSb;\r
EFI_STATUS Status;\r
EFI_TPL OldTpl;\r
\r
}\r
\r
IpInstance = IP6_INSTANCE_FROM_PROTOCOL (This);\r
- IpSb = IpInstance->Service;\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK);\r
\r
## @file\r
# UEFI 2.4 Network Module Package for All Architectures\r
#\r
+# (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
# Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
PLATFORM_VERSION = 0.95\r
DSC_SPECIFICATION = 0x00010005\r
OUTPUT_DIRECTORY = Build/NetworkPkg\r
- SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC|ARM\r
+ SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC|ARM|AARCH64\r
BUILD_TARGETS = DEBUG|RELEASE\r
SKUID_IDENTIFIER = DEFAULT\r
\r
SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf\r
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
\r
+[LibraryClasses.ARM, LibraryClasses.AARCH64]\r
+ #\r
+ # It is not possible to prevent ARM compiler calls to generic intrinsic functions.\r
+ # This library provides the instrinsic functions generated by a given compiler.\r
+ # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.\r
+ #\r
+ NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r
+\r
[PcdsFeatureFlag]\r
gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE\r
gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE\r
/** @file\r
The implementation of a dispatch routine for processing TCP requests.\r
\r
+ (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
\r
AccessPoint->UseDefaultAddress = Tcb->UseDefaultAddr;\r
\r
- CopyMem (&AccessPoint->StationAddress, &Tcb->LocalEnd.Ip, sizeof (EFI_IPv4_ADDRESS));\r
+ IP4_COPY_ADDRESS (&AccessPoint->StationAddress, &Tcb->LocalEnd.Ip);\r
\r
- AccessPoint->SubnetMask = Tcb->SubnetMask;\r
+ IP4_COPY_ADDRESS (&AccessPoint->SubnetMask, &Tcb->SubnetMask);\r
AccessPoint->StationPort = NTOHS (Tcb->LocalEnd.Port);\r
\r
- CopyMem (&AccessPoint->RemoteAddress, &Tcb->RemoteEnd.Ip, sizeof (EFI_IPv4_ADDRESS));\r
+ IP4_COPY_ADDRESS (&AccessPoint->RemoteAddress, &Tcb->RemoteEnd.Ip);\r
\r
AccessPoint->RemotePort = NTOHS (Tcb->RemoteEnd.Port);\r
AccessPoint->ActiveFlag = (BOOLEAN) (Tcb->State != TCP_LISTEN);\r
UINT16 *RandomPort;\r
\r
if (IpVersion == IP_VERSION_4) {\r
- CopyMem (&Local, &TcpAp->Tcp4Ap.StationAddress, sizeof (EFI_IPv4_ADDRESS));\r
+ IP4_COPY_ADDRESS (&Local, &TcpAp->Tcp4Ap.StationAddress);\r
Port = &TcpAp->Tcp4Ap.StationPort;\r
RandomPort = &mTcp4RandomPort;\r
} else {\r
IpCfgData.Ip4CfgData.TypeOfService = CfgData->Tcp4CfgData.TypeOfService;\r
IpCfgData.Ip4CfgData.TimeToLive = CfgData->Tcp4CfgData.TimeToLive;\r
IpCfgData.Ip4CfgData.UseDefaultAddress = CfgData->Tcp4CfgData.AccessPoint.UseDefaultAddress;\r
- IpCfgData.Ip4CfgData.SubnetMask = CfgData->Tcp4CfgData.AccessPoint.SubnetMask;\r
+ IP4_COPY_ADDRESS (\r
+ &IpCfgData.Ip4CfgData.SubnetMask,\r
+ &CfgData->Tcp4CfgData.AccessPoint.SubnetMask\r
+ );\r
IpCfgData.Ip4CfgData.ReceiveTimeout = (UINT32) (-1);\r
- CopyMem (\r
+ IP4_COPY_ADDRESS (\r
&IpCfgData.Ip4CfgData.StationAddress,\r
- &CfgData->Tcp4CfgData.AccessPoint.StationAddress,\r
- sizeof (EFI_IPv4_ADDRESS)\r
+ &CfgData->Tcp4CfgData.AccessPoint.StationAddress\r
);\r
\r
} else {\r
//\r
// Get the default address information if the instance is configured to use default address.\r
//\r
- CfgData->Tcp4CfgData.AccessPoint.StationAddress = IpCfgData.Ip4CfgData.StationAddress;\r
- CfgData->Tcp4CfgData.AccessPoint.SubnetMask = IpCfgData.Ip4CfgData.SubnetMask;\r
+ IP4_COPY_ADDRESS (\r
+ &CfgData->Tcp4CfgData.AccessPoint.StationAddress,\r
+ &IpCfgData.Ip4CfgData.StationAddress\r
+ );\r
+ IP4_COPY_ADDRESS (\r
+ &CfgData->Tcp4CfgData.AccessPoint.SubnetMask,\r
+ &IpCfgData.Ip4CfgData.SubnetMask\r
+ );\r
\r
TcpAp = (TCP_ACCESS_POINT *) &CfgData->Tcp4CfgData.AccessPoint;\r
} else {\r
\r
CopyMem (&Tcb->LocalEnd.Ip, &CfgData->Tcp4CfgData.AccessPoint.StationAddress, sizeof (IP4_ADDR));\r
Tcb->LocalEnd.Port = HTONS (CfgData->Tcp4CfgData.AccessPoint.StationPort);\r
- Tcb->SubnetMask = CfgData->Tcp4CfgData.AccessPoint.SubnetMask;\r
+ IP4_COPY_ADDRESS (&Tcb->SubnetMask, &CfgData->Tcp4CfgData.AccessPoint.SubnetMask);\r
\r
CopyMem (&Tcb->RemoteEnd.Ip, &CfgData->Tcp4CfgData.AccessPoint.RemoteAddress, sizeof (IP4_ADDR));\r
Tcb->RemoteEnd.Port = HTONS (CfgData->Tcp4CfgData.AccessPoint.RemotePort);\r
/** @file\r
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
\r
This program and the accompanying materials\r
Sock = SOCK_FROM_THIS (This);\r
\r
RouteInfo.DeleteRoute = DeleteRoute;\r
- RouteInfo.SubnetAddress = SubnetAddress;\r
- RouteInfo.SubnetMask = SubnetMask;\r
- RouteInfo.GatewayAddress = GatewayAddress;\r
+ IP4_COPY_ADDRESS (&RouteInfo.SubnetAddress, &SubnetAddress);\r
+ IP4_COPY_ADDRESS (&RouteInfo.SubnetMask, &SubnetMask);\r
+ IP4_COPY_ADDRESS (&RouteInfo.GatewayAddress, &GatewayAddress);\r
\r
return SockRoute (Sock, &RouteInfo);\r
}\r
/** @file\r
Misc support routines for TCP driver.\r
\r
+ (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
LIST_ENTRY *Entry;\r
LIST_ENTRY *Head;\r
TCP_CB *Node;\r
- TCP_PROTO_DATA *TcpProto;\r
\r
ASSERT (\r
(Tcb != NULL) &&\r
\r
InsertHeadList (Head, &Tcb->List);\r
\r
- TcpProto = (TCP_PROTO_DATA *) Tcb->Sk->ProtoReserved;\r
\r
return 0;\r
}\r
/** @file\r
Functions implementation related with DHCPv6 for UefiPxeBc Driver.\r
\r
+ (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
{\r
EFI_PXE_BASE_CODE_UDP_PORT SrcPort;\r
EFI_PXE_BASE_CODE_UDP_PORT DestPort;\r
- EFI_PXE_BASE_CODE_MODE *Mode;\r
EFI_PXE_BASE_CODE_PROTOCOL *PxeBc;\r
EFI_PXE_BASE_CODE_DHCPV6_PACKET *Discover;\r
UINTN DiscoverLen;\r
UINT8 *Option;\r
\r
PxeBc = &Private->PxeBc;\r
- Mode = PxeBc->Mode;\r
Request = Private->Dhcp6Request;\r
ProxyOffer = &Private->OfferBuffer[Index].Dhcp6.Packet.Offer;\r
SrcPort = PXEBC_BS_DISCOVER_PORT;\r
/** @file\r
Driver Binding functions implementationfor for UefiPxeBc Driver.\r
\r
+ (C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
EFI_LOAD_FILE_PROTOCOL *LoadFile;\r
EFI_STATUS Status;\r
EFI_HANDLE NicHandle;\r
- BOOLEAN IsIpv6;\r
PXEBC_PRIVATE_PROTOCOL *Id;\r
\r
Private = NULL;\r
VirtualNic = NULL;\r
LoadFile = NULL;\r
Id = NULL;\r
- IsIpv6 = FALSE;\r
\r
Status = gBS->OpenProtocol (\r
ControllerHandle,\r