]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Application/IpsecConfig/Match.h
NetworkPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / NetworkPkg / Application / IpsecConfig / Match.h
1 /** @file
2 The internal structure and function declaration of
3 match policy entry function in IpSecConfig application.
4
5 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 **/
10
11 #ifndef _MATCH_H_
12 #define _MATCH_H_
13
14 /**
15 The prototype for the MatchSpdEntry()/MatchSadEntry()/MatchPadEntry().
16 The functionality is to find the matching SPD/SAD/PAD with Indexer.
17
18 @param[in] Selector The pointer to the EFI_IPSEC_CONFIG_SELECTOR union.
19 @param[in] Data The pointer to corresponding Data.
20 @param[in] Indexer The pointer to the POLICY_ENTRY_INDEXER union.
21
22 @retval TRUE The matched SPD/SAD/PAD is found.
23 @retval FALSE The matched SPD/SAD/PAD is not found.
24 **/
25 typedef
26 BOOLEAN
27 (* MATCH_POLICY_ENTRY) (
28 IN EFI_IPSEC_CONFIG_SELECTOR *Selector,
29 IN VOID *Data,
30 IN POLICY_ENTRY_INDEXER *Indexer
31 );
32
33 extern MATCH_POLICY_ENTRY mMatchPolicyEntry[];
34
35 #endif