EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Functions | Variables

NetworkPkg/Application/IpsecConfig/Match.c File Reference

#include "IpSecConfig.h"
#include "Indexer.h"
#include "Match.h"

Go to the source code of this file.

Functions

BOOLEAN IsMemoryZero (IN VOID *Memory, IN UINTN Size)
BOOLEAN MatchSpdEntry (IN EFI_IPSEC_SPD_SELECTOR *Selector, IN EFI_IPSEC_SPD_DATA *Data, IN SPD_ENTRY_INDEXER *Indexer)
BOOLEAN MatchSadEntry (IN EFI_IPSEC_SA_ID *SaId, IN EFI_IPSEC_SA_DATA2 *Data, IN SAD_ENTRY_INDEXER *Indexer)
BOOLEAN MatchPadEntry (IN EFI_IPSEC_PAD_ID *PadId, IN EFI_IPSEC_PAD_DATA *Data, IN PAD_ENTRY_INDEXER *Indexer)

Variables

MATCH_POLICY_ENTRY mMatchPolicyEntry []

Detailed Description

The implementation of match policy entry function in IpSecConfig application.

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.

Definition in file Match.c.


Function Documentation

BOOLEAN IsMemoryZero ( IN VOID *  Memory,
IN UINTN  Size 
)

Private function to validate a buffer that should be filled with zero.

Parameters:
[in]MemoryThe pointer to the buffer.
[in]SizeThe size of the buffer.
Return values:
TRUEThe memory is filled with zero.
FALSEThe memory isn't filled with zero.

Definition at line 30 of file Match.c.

BOOLEAN MatchPadEntry ( IN EFI_IPSEC_PAD_ID PadId,
IN EFI_IPSEC_PAD_DATA Data,
IN PAD_ENTRY_INDEXER Indexer 
)

Find the matching PAD with Indexer.

Parameters:
[in]PadIdThe pointer to the EFI_IPSEC_PAD_ID structure.
[in]DataThe pointer to the EFI_IPSEC_PAD_DATA structure.
[in]IndexerThe pointer to the SPD_ENTRY_INDEXER structure.
Return values:
TRUEThe matched PAD is found.
FALSEThe matched PAD is not found.

Definition at line 124 of file Match.c.

BOOLEAN MatchSadEntry ( IN EFI_IPSEC_SA_ID SaId,
IN EFI_IPSEC_SA_DATA2 Data,
IN SAD_ENTRY_INDEXER Indexer 
)

Find the matching SAD with Indexer.

Parameters:
[in]SaIdThe pointer to the EFI_IPSEC_SA_ID structure.
[in]DataThe pointer to the EFI_IPSEC_SA_DATA2 structure.
[in]IndexerThe pointer to the SPD_ENTRY_INDEXER structure.
Return values:
TRUEThe matched SAD is found.
FALSEThe matched SAD is not found.

Definition at line 92 of file Match.c.

BOOLEAN MatchSpdEntry ( IN EFI_IPSEC_SPD_SELECTOR Selector,
IN EFI_IPSEC_SPD_DATA Data,
IN SPD_ENTRY_INDEXER Indexer 
)

Find the matching SPD with Indexer.

Parameters:
[in]SelectorThe pointer to the EFI_IPSEC_SPD_SELECTOR structure.
[in]DataThe pointer to the EFI_IPSEC_SPD_DATA structure.
[in]IndexerThe pointer to the SPD_ENTRY_INDEXER structure.
Return values:
TRUEThe matched SPD is found.
FALSEThe matched SPD is not found.

Definition at line 57 of file Match.c.


Variable Documentation

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines