NetworkPkg/IpSecDxe/IpSecMain.c File Reference


Functions

EFI_STATUS EFIAPI IpSecProcess (IN EFI_IPSEC2_PROTOCOL *This, IN EFI_HANDLE NicHandle, IN UINT8 IpVersion, IN OUT VOID *IpHead, IN OUT UINT8 *LastHead, IN OUT VOID **OptionsBuffer, IN OUT UINT32 *OptionsLength, IN OUT EFI_IPSEC_FRAGMENT_DATA **FragmentTable, IN OUT UINT32 *FragmentCount, IN EFI_IPSEC_TRAFFIC_DIR TrafficDirection, OUT EFI_EVENT *RecycleSignal)

Variables

EFI_IPSEC2_PROTOCOL mIpSecInstance = { IpSecProcess, NULL, TRUE }

Detailed Description

The mian interface of IPsec Protocol.

Copyright (c) 2009 - 2011, 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.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.


Function Documentation

EFI_STATUS EFIAPI IpSecProcess ( IN EFI_IPSEC2_PROTOCOL *  This,
IN EFI_HANDLE  NicHandle,
IN UINT8  IpVersion,
IN OUT VOID *  IpHead,
IN OUT UINT8 *  LastHead,
IN OUT VOID **  OptionsBuffer,
IN OUT UINT32 *  OptionsLength,
IN OUT EFI_IPSEC_FRAGMENT_DATA **  FragmentTable,
IN OUT UINT32 *  FragmentCount,
IN EFI_IPSEC_TRAFFIC_DIR  TrafficDirection,
OUT EFI_EVENT *  RecycleSignal 
)

Handles IPsec packet processing for inbound and outbound IP packets.

The EFI_IPSEC_PROCESS process routine handles each inbound or outbound packet. The behavior is that it can perform one of the following actions: bypass the packet, discard the packet, or protect the packet.

Parameters:
[in] This Pointer to the EFI_IPSEC2_PROTOCOL instance.
[in] NicHandle Instance of the network interface.
[in] IpVersion IPV4 or IPV6.
[in,out] IpHead Pointer to the IP Header.
[in,out] LastHead The protocol of the next layer to be processed by IPsec.
[in,out] OptionsBuffer Pointer to the options buffer.
[in,out] OptionsLength Length of the options buffer.
[in,out] FragmentTable Pointer to a list of fragments.
[in,out] FragmentCount Number of fragments.
[in] TrafficDirection Traffic direction.
[out] RecycleSignal Event for recycling of resources.
Return values:
EFI_SUCCESS The packet was bypassed and all buffers remain the same.
EFI_SUCCESS The packet was protected.
EFI_ACCESS_DENIED The packet was discarded.

References IPSEC_PRIVATE_DATA_FROM_IPSEC, IPSEC_SPD_ENTRY_FROM_LIST, IpSecLookupSadEntry(), IpSecLookupSpdEntry(), IpSecProtectInboundPacket(), IpSecProtectOutboundPacket(), IsSubSpdSelector(), mConfigData, and _IPSEC_SPD_ENTRY::Selector.


Variable Documentation

EFI_IPSEC2_PROTOCOL mIpSecInstance = { IpSecProcess, NULL, TRUE }

Referenced by IpSecDriverEntryPoint().


Generated on Mon Sep 28 08:49:06 2015 for NetworkPkg[ALL] by  doxygen 1.5.7.1