NetworkPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Implementation of EFI_COMPONENT_NAME_PROTOCOL and
|
||||
EFI_COMPONENT_NAME2_PROTOCOL protocol.
|
||||
|
||||
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -238,10 +238,10 @@ Ip6ComponentNameGetDriverName (
|
||||
|
||||
@param Ip6[in] A pointer to the EFI_IP6_PROTOCOL.
|
||||
|
||||
|
||||
|
||||
@retval EFI_SUCCESS Update the ControllerNameTable of this instance successfully.
|
||||
@retval EFI_INVALID_PARAMETER The input parameter is invalid.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
UpdateName (
|
||||
@@ -320,7 +320,7 @@ UpdateName (
|
||||
FreeUnicodeStringTable (gIp6ControllerNameTable);
|
||||
gIp6ControllerNameTable = NULL;
|
||||
}
|
||||
|
||||
|
||||
Status = AddUnicodeString2 (
|
||||
"eng",
|
||||
gIp6ComponentName.SupportedLanguages,
|
||||
@@ -331,7 +331,7 @@ UpdateName (
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
return AddUnicodeString2 (
|
||||
"en",
|
||||
gIp6ComponentName2.SupportedLanguages,
|
||||
@@ -421,7 +421,7 @@ Ip6ComponentNameGetControllerName (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_IP6_PROTOCOL *Ip6;
|
||||
|
||||
|
||||
//
|
||||
// Only provide names for child handles.
|
||||
//
|
||||
@@ -430,7 +430,7 @@ Ip6ComponentNameGetControllerName (
|
||||
}
|
||||
|
||||
//
|
||||
// Make sure this driver produced ChildHandle
|
||||
// Make sure this driver produced ChildHandle
|
||||
//
|
||||
Status = EfiTestChildHandle (
|
||||
ControllerHandle,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
The implementation of common functions shared by IP6 driver.
|
||||
|
||||
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -330,7 +330,7 @@ Ip6AddAddr (
|
||||
|
||||
/**
|
||||
Callback function which provided by user to remove one node in NetDestroyLinkList process.
|
||||
|
||||
|
||||
@param[in] Entry The entry to be removed.
|
||||
@param[in] Context Pointer to the callback context corresponds to the Context in NetDestroyLinkList.
|
||||
|
||||
@@ -348,7 +348,7 @@ Ip6DestroyChildEntryByAddr (
|
||||
IP6_PROTOCOL *Instance;
|
||||
EFI_SERVICE_BINDING_PROTOCOL *ServiceBinding;
|
||||
EFI_IPv6_ADDRESS *Address;
|
||||
|
||||
|
||||
Instance = NET_LIST_USER_STRUCT_S (Entry, IP6_PROTOCOL, Link, IP6_PROTOCOL_SIGNATURE);
|
||||
ServiceBinding = ((IP6_DESTROY_CHILD_BY_ADDR_CALLBACK_CONTEXT*) Context)->ServiceBinding;
|
||||
Address = ((IP6_DESTROY_CHILD_BY_ADDR_CALLBACK_CONTEXT*) Context)->Address;
|
||||
@@ -356,7 +356,7 @@ Ip6DestroyChildEntryByAddr (
|
||||
if ((Instance->State == IP6_STATE_CONFIGED) && EFI_IP6_EQUAL (&Instance->ConfigData.StationAddress, Address)) {
|
||||
return ServiceBinding->DestroyChild (ServiceBinding, Instance->Handle);
|
||||
}
|
||||
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
The implementation of EFI IPv6 Configuration Protocol.
|
||||
|
||||
Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -58,7 +58,7 @@ Ip6ConfigOnPolicyChanged (
|
||||
BOOLEAN Recovery;
|
||||
|
||||
Recovery = FALSE;
|
||||
|
||||
|
||||
//
|
||||
// Currently there are only two policies: Manual and Automatic. Regardless of
|
||||
// what transition is going on, i.e., Manual -> Automatic and Automatic ->
|
||||
@@ -86,14 +86,14 @@ Ip6ConfigOnPolicyChanged (
|
||||
}
|
||||
|
||||
if (!IsListEmpty (&IpSb->DefaultInterface->AddressList) && IpSb->DefaultInterface->AddressCount > 0) {
|
||||
//
|
||||
// If any IPv6 children (Instance) in configured state and use global unicast address, it will be
|
||||
// destroyed in Ip6RemoveAddr() function later. Then, the upper layer driver's Stop() function will be
|
||||
// called, which may break the upper layer network stacks. So, the driver should take the responsibility
|
||||
// for the recovery by using ConnectController() after Ip6RemoveAddr().
|
||||
//
|
||||
// If any IPv6 children (Instance) in configured state and use global unicast address, it will be
|
||||
// destroyed in Ip6RemoveAddr() function later. Then, the upper layer driver's Stop() function will be
|
||||
// called, which may break the upper layer network stacks. So, the driver should take the responsibility
|
||||
// for the recovery by using ConnectController() after Ip6RemoveAddr().
|
||||
// Here, just check whether need to recover the upper layer network stacks later.
|
||||
//
|
||||
NET_LIST_FOR_EACH (Entry, &IpSb->DefaultInterface->AddressList) {
|
||||
NET_LIST_FOR_EACH (Entry, &IpSb->DefaultInterface->AddressList) {
|
||||
AddrInfo = NET_LIST_USER_STRUCT_S (Entry, IP6_ADDRESS_INFO, Link, IP6_ADDR_INFO_SIGNATURE);
|
||||
if (!IsListEmpty (&IpSb->Children)) {
|
||||
NET_LIST_FOR_EACH (Entry2, &IpSb->Children) {
|
||||
@@ -105,7 +105,7 @@ Ip6ConfigOnPolicyChanged (
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// All IPv6 children that use global unicast address as it's source address
|
||||
// should be destroyed now. The survivers are those use the link-local address
|
||||
@@ -118,7 +118,7 @@ Ip6ConfigOnPolicyChanged (
|
||||
NULL,
|
||||
0
|
||||
);
|
||||
|
||||
|
||||
if (IpSb->Controller != NULL && Recovery) {
|
||||
//
|
||||
// ConnectController() to recover the upper layer network stacks.
|
||||
@@ -726,7 +726,7 @@ Ip6ConfigSetPolicy (
|
||||
DataItem->DataSize = 0;
|
||||
DataItem->Status = EFI_NOT_FOUND;
|
||||
NetMapIterate (&DataItem->EventMap, Ip6ConfigSignalEvent, NULL);
|
||||
|
||||
|
||||
if (NewPolicy == Ip6ConfigPolicyManual) {
|
||||
//
|
||||
// The policy is changed from automatic to manual. Stop the DHCPv6 process
|
||||
@@ -1546,7 +1546,7 @@ Ip6ConfigSetDnsServer (
|
||||
}
|
||||
} else {
|
||||
//
|
||||
// DataSize is 0 and Data is NULL, clean up the DnsServer address.
|
||||
// DataSize is 0 and Data is NULL, clean up the DnsServer address.
|
||||
//
|
||||
if (Item->Data.Ptr != NULL) {
|
||||
FreePool (Item->Data.Ptr);
|
||||
@@ -1965,7 +1965,7 @@ Ip6ConfigOnDhcp6SbInstalled (
|
||||
network stack was set successfully.
|
||||
@retval EFI_INVALID_PARAMETER One or more of the following are TRUE:
|
||||
- This is NULL.
|
||||
- One or more fields in Data and DataSizedo not match the
|
||||
- One or more fields in Data and DataSizedo not match the
|
||||
requirement of the data type indicated by DataType.
|
||||
@retval EFI_WRITE_PROTECTED The specified configuration data is read-only or the specified
|
||||
configuration data cannot be set under the current policy.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Definitions for EFI IPv6 Configuartion Protocol implementation.
|
||||
|
||||
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -70,7 +70,7 @@ typedef struct _IP6_CONFIG_INSTANCE IP6_CONFIG_INSTANCE;
|
||||
8 bytes.
|
||||
@retval EFI_SUCCESS The specified configuration data for the EFI IPv6
|
||||
network stack was set successfully.
|
||||
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -87,14 +87,14 @@ EFI_STATUS
|
||||
@param[in, out] DataSize On input, in bytes, the size of Data. On output, in
|
||||
bytes, the size of buffer required to store the specified
|
||||
configuration data.
|
||||
@param[in] Data The data buffer in which the configuration data is returned.
|
||||
@param[in] Data The data buffer in which the configuration data is returned.
|
||||
Ignored if DataSize is ZERO.
|
||||
|
||||
@retval EFI_BUFFER_TOO_SMALL The size of Data is too small for the specified
|
||||
configuration data, and the required size is
|
||||
configuration data, and the required size is
|
||||
returned in DataSize.
|
||||
@retval EFI_SUCCESS The specified configuration data was obtained successfully.
|
||||
|
||||
@retval EFI_SUCCESS The specified configuration data was obtained successfully.
|
||||
|
||||
**/
|
||||
typedef
|
||||
EFI_STATUS
|
||||
@@ -162,9 +162,9 @@ typedef struct {
|
||||
} IP6_ADDRESS_INFO_ENTRY;
|
||||
|
||||
typedef struct {
|
||||
EFI_IP6_CONFIG_POLICY Policy; ///< manual or automatic
|
||||
EFI_IP6_CONFIG_POLICY Policy; ///< manual or automatic
|
||||
EFI_IP6_CONFIG_DUP_ADDR_DETECT_TRANSMITS DadTransmitCount; ///< dad transmits count
|
||||
EFI_IP6_CONFIG_INTERFACE_ID InterfaceId; ///< alternative interface id
|
||||
EFI_IP6_CONFIG_INTERFACE_ID InterfaceId; ///< alternative interface id
|
||||
LIST_ENTRY ManualAddress; ///< IP addresses
|
||||
UINT32 ManualAddressCount; ///< IP addresses count
|
||||
LIST_ENTRY GatewayAddress; ///< Gateway address
|
||||
@@ -236,13 +236,13 @@ Ip6ConfigReadConfigData (
|
||||
/**
|
||||
The event process routine when the DHCPv6 server is answered with a reply packet
|
||||
for an information request.
|
||||
|
||||
|
||||
@param[in] This Points to the EFI_DHCP6_PROTOCOL.
|
||||
@param[in] Context The pointer to the IP6 configuration instance data.
|
||||
@param[in] Packet The DHCPv6 reply packet.
|
||||
|
||||
@retval EFI_SUCCESS The DNS server address was retrieved from the reply packet.
|
||||
@retval EFI_NOT_READY The reply packet does not contain the DNS server option, or
|
||||
@retval EFI_NOT_READY The reply packet does not contain the DNS server option, or
|
||||
the DNS server address is not valid.
|
||||
|
||||
**/
|
||||
@@ -256,7 +256,7 @@ Ip6ConfigOnDhcp6Reply (
|
||||
|
||||
/**
|
||||
The work function to trigger the DHCPv6 process to perform a stateful autoconfiguration.
|
||||
|
||||
|
||||
@param[in] Instance Pointer to the IP6 config instance data.
|
||||
@param[in] OtherInfoOnly If FALSE, get stateful address and other information
|
||||
via DHCPv6. Otherwise, only get the other information.
|
||||
@@ -275,10 +275,10 @@ Ip6ConfigStartStatefulAutoConfig (
|
||||
Initialize an IP6_CONFIG_INSTANCE.
|
||||
|
||||
@param[out] Instance The buffer of IP6_CONFIG_INSTANCE to be initialized.
|
||||
|
||||
|
||||
@retval EFI_OUT_OF_RESOURCES Failed to allocate resources to complete the operation.
|
||||
@retval EFI_SUCCESS The IP6_CONFIG_INSTANCE initialized successfully.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
Ip6ConfigInitInstance (
|
||||
@@ -289,7 +289,7 @@ Ip6ConfigInitInstance (
|
||||
Release an IP6_CONFIG_INSTANCE.
|
||||
|
||||
@param[in, out] Instance The buffer of IP6_CONFIG_INSTANCE to be freed.
|
||||
|
||||
|
||||
**/
|
||||
VOID
|
||||
Ip6ConfigCleanInstance (
|
||||
@@ -303,7 +303,7 @@ Ip6ConfigCleanInstance (
|
||||
|
||||
@retval EFI_SUCCESS The child was successfully destroyed.
|
||||
@retval Others Failed to destroy the child.
|
||||
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
Ip6ConfigDestroyDhcp6 (
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Helper functions for configuring or obtaining the parameters relating to IP6.
|
||||
|
||||
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -994,7 +994,7 @@ Exit:
|
||||
|
||||
/**
|
||||
Convert IFR data into IP6 configuration data. The policy, alternative interface
|
||||
ID, and DAD transmit counts, and will be saved.
|
||||
ID, and DAD transmit counts, and will be saved.
|
||||
|
||||
@param[in] IfrNvData The IFR NV data.
|
||||
@param[in, out] Instance The IP6 config instance data.
|
||||
@@ -1541,7 +1541,7 @@ Ip6GetCurrentSetting (
|
||||
EFI_STATUS Status;
|
||||
CHAR16 PortString[ADDRESS_STR_MAX_SIZE];
|
||||
EFI_IP6_CONFIG_INTERFACE_INFO *IfInfo;
|
||||
|
||||
|
||||
|
||||
Ip6Config = &Instance->Ip6Config;
|
||||
HiiHandle = Instance->CallbackInfo.RegisteredHandle;
|
||||
@@ -1794,7 +1794,7 @@ Ip6FormCallback (
|
||||
}
|
||||
*ActionRequest = EFI_BROWSER_ACTION_REQUEST_SUBMIT;
|
||||
break;
|
||||
|
||||
|
||||
case KEY_INTERFACE_ID:
|
||||
Status = Ip6ParseInterfaceIdFromString (IfrNvData->InterfaceId, &Ip6NvData->InterfaceId);
|
||||
if (EFI_ERROR (Status)) {
|
||||
@@ -1805,9 +1805,9 @@ Ip6FormCallback (
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case KEY_MANUAL_ADDRESS:
|
||||
Status = Ip6ParseAddressListFromString (
|
||||
IfrNvData->ManualAddress,
|
||||
@@ -1822,9 +1822,9 @@ Ip6FormCallback (
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case KEY_GATEWAY_ADDRESS:
|
||||
Status = Ip6ParseAddressListFromString (
|
||||
IfrNvData->GatewayAddress,
|
||||
@@ -1839,9 +1839,9 @@ Ip6FormCallback (
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
case KEY_DNS_ADDRESS:
|
||||
Status = Ip6ParseAddressListFromString (
|
||||
IfrNvData->DnsAddress,
|
||||
@@ -1856,7 +1856,7 @@ Ip6FormCallback (
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
The driver binding and service binding protocol for IP6 driver.
|
||||
|
||||
Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
@@ -182,7 +182,7 @@ Ip6CleanService (
|
||||
Status = Ip6LeaveGroup (IpSb, &AllNodes);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (IpSb->DefaultInterface != NULL) {
|
||||
@@ -568,14 +568,14 @@ Ip6DriverBindingStart (
|
||||
}
|
||||
|
||||
//
|
||||
// Read the config data from NV variable again.
|
||||
// Read the config data from NV variable again.
|
||||
// The default data can be changed by other drivers.
|
||||
//
|
||||
Status = Ip6ConfigReadConfigData (IpSb->MacString, &IpSb->Ip6ConfigInstance);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto ON_ERROR;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// If there is any default manual address, set it.
|
||||
//
|
||||
@@ -638,7 +638,7 @@ Ip6DriverBindingStart (
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto ON_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Initialize the IP6 ID
|
||||
@@ -655,7 +655,7 @@ ON_ERROR:
|
||||
|
||||
/**
|
||||
Callback function which provided by user to remove one node in NetDestroyLinkList process.
|
||||
|
||||
|
||||
@param[in] Entry The entry to be removed.
|
||||
@param[in] Context Pointer to the callback context corresponds to the Context in NetDestroyLinkList.
|
||||
|
||||
@@ -786,7 +786,7 @@ Ip6DriverBindingStop (
|
||||
FreePool (IpSb);
|
||||
Status = EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Exit:
|
||||
return Status;
|
||||
}
|
||||
|
@@ -1,13 +1,13 @@
|
||||
## @file
|
||||
# Basic IPv6 packet I/O Service.
|
||||
#
|
||||
# This module provides basic network IPv6 packet I/O services which includes support for
|
||||
# Neighbor Discovery Protocol (ND), Multicast Listener Discovery Protocol (MLD),
|
||||
# and a subset of the Internet Control Message Protocol (ICMPv6). This driver
|
||||
#
|
||||
# This module provides basic network IPv6 packet I/O services which includes support for
|
||||
# Neighbor Discovery Protocol (ND), Multicast Listener Discovery Protocol (MLD),
|
||||
# and a subset of the Internet Control Message Protocol (ICMPv6). This driver
|
||||
# also provides the mechanism to set and get various types of configurations for
|
||||
# the EFI IPv6 network stack.
|
||||
#
|
||||
# Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
|
@@ -7,13 +7,13 @@
|
||||
// also provides the mechanism to set and get various types of configurations for
|
||||
// the EFI IPv6 network stack.
|
||||
//
|
||||
// Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// Ip6Dxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"Ip6 DXE"
|
||||
|
||||
|
||||
|
@@ -1,9 +1,9 @@
|
||||
/** @file
|
||||
The ICMPv6 handle routines to process the ICMPv6 control messages.
|
||||
|
||||
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
|
||||
|
||||
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
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Implement IP6 pesudo interface.
|
||||
|
||||
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -565,7 +565,7 @@ Ip6ReceiveFrame (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
IP6_LINK_RX_TOKEN *Token;
|
||||
|
||||
|
||||
NET_CHECK_SIGNATURE (IpSb, IP6_SERVICE_SIGNATURE);
|
||||
|
||||
Token = &IpSb->RecvRequest;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
IP6 internal functions to process the incoming packets.
|
||||
|
||||
Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
@@ -531,7 +531,7 @@ Ip6IpSecProcessPacket (
|
||||
goto ON_EXIT;
|
||||
}
|
||||
ASSERT (mIpSec != NULL);
|
||||
|
||||
|
||||
Packet = *Netbuf;
|
||||
RecycleEvent = NULL;
|
||||
IpSecWrap = NULL;
|
||||
@@ -647,7 +647,7 @@ Ip6IpSecProcessPacket (
|
||||
IP6_GET_CLIP_INFO (Packet),
|
||||
sizeof (IP6_CLIP_INFO)
|
||||
);
|
||||
|
||||
|
||||
NetIpSecNetbufFree(Packet);
|
||||
*Netbuf = TxWrap->Packet;
|
||||
|
||||
@@ -724,13 +724,13 @@ ON_EXIT:
|
||||
@param[in, out] Packet The received IP6 packet to be processed.
|
||||
@param[in] Flag The link layer flag for the packet received, such
|
||||
as multicast.
|
||||
@param[out] Payload The pointer to the payload of the recieved packet.
|
||||
it starts from the first byte of the extension header.
|
||||
@param[out] Payload The pointer to the payload of the recieved packet.
|
||||
it starts from the first byte of the extension header.
|
||||
@param[out] LastHead The pointer of NextHeader of the last extension
|
||||
header processed by IP6.
|
||||
@param[out] ExtHdrsLen The length of the whole option.
|
||||
@param[out] UnFragmentLen The length of unfragmented length of extension headers.
|
||||
@param[out] Fragmented Indicate whether the packet is fragmented.
|
||||
@param[out] Fragmented Indicate whether the packet is fragmented.
|
||||
@param[out] Head The pointer to the EFI_IP6_Header.
|
||||
|
||||
@retval EFI_SUCCESS The received packet is well format.
|
||||
@@ -746,7 +746,7 @@ Ip6PreProcessPacket (
|
||||
OUT UINT8 **LastHead,
|
||||
OUT UINT32 *ExtHdrsLen,
|
||||
OUT UINT32 *UnFragmentLen,
|
||||
OUT BOOLEAN *Fragmented,
|
||||
OUT BOOLEAN *Fragmented,
|
||||
OUT EFI_IP6_HEADER **Head
|
||||
)
|
||||
{
|
||||
@@ -964,7 +964,7 @@ Ip6PreProcessPacket (
|
||||
// and Packet->TotalLen == Info->Length.
|
||||
//
|
||||
NetbufTrim (*Packet, sizeof (EFI_IP6_HEADER) + *ExtHdrsLen, TRUE);
|
||||
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -1009,18 +1009,18 @@ Ip6AcceptFrame (
|
||||
if (EFI_ERROR (IoStatus) || (IpSb->State == IP6_SERVICE_DESTROY)) {
|
||||
goto Drop;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Pre-Process the Ipv6 Packet and then reassemble if it is necessary.
|
||||
//
|
||||
Status = Ip6PreProcessPacket (
|
||||
IpSb,
|
||||
&Packet,
|
||||
Flag,
|
||||
&Payload,
|
||||
&LastHead,
|
||||
&ExtHdrsLen,
|
||||
&UnFragmentLen,
|
||||
IpSb,
|
||||
&Packet,
|
||||
Flag,
|
||||
&Payload,
|
||||
&LastHead,
|
||||
&ExtHdrsLen,
|
||||
&UnFragmentLen,
|
||||
&Fragmented,
|
||||
&Head
|
||||
);
|
||||
@@ -1052,14 +1052,14 @@ Ip6AcceptFrame (
|
||||
ZeroMem (&ZeroHead, sizeof (EFI_IP6_HEADER));
|
||||
if (0 == CompareMem (Head, &ZeroHead, sizeof (EFI_IP6_HEADER))) {
|
||||
Status = Ip6PreProcessPacket (
|
||||
IpSb,
|
||||
&Packet,
|
||||
Flag,
|
||||
&Payload,
|
||||
&LastHead,
|
||||
&ExtHdrsLen,
|
||||
&UnFragmentLen,
|
||||
&Fragmented,
|
||||
IpSb,
|
||||
&Packet,
|
||||
Flag,
|
||||
&Payload,
|
||||
&LastHead,
|
||||
&ExtHdrsLen,
|
||||
&UnFragmentLen,
|
||||
&Fragmented,
|
||||
&Head
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
@@ -1073,7 +1073,7 @@ Ip6AcceptFrame (
|
||||
if (Packet == NULL) {
|
||||
goto Restart;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Packet may have been changed. The ownership of the packet
|
||||
// is transfered to the packet process logic.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Implementation of Neighbor Discovery support routines.
|
||||
|
||||
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -822,7 +822,7 @@ Ip6OnDADFinished (
|
||||
EFI_DHCP6_PACKET_OPTION *Oro;
|
||||
EFI_DHCP6_RETRANSMISSION InfoReqReXmit;
|
||||
EFI_IPv6_ADDRESS AllNodes;
|
||||
|
||||
|
||||
IpSb = IpIf->Service;
|
||||
AddrInfo = DadEntry->AddressInfo;
|
||||
|
||||
@@ -988,7 +988,7 @@ Ip6InitDADProcess (
|
||||
if (Ip6FindDADEntry (IpIf->Service, &AddressInfo->Address, NULL) != NULL) {
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Status = EFI_SUCCESS;
|
||||
IpSb = IpIf->Service;
|
||||
DadXmits = &IpSb->Ip6ConfigInstance.DadXmits;
|
||||
|
Reference in New Issue
Block a user