TianoCore EDK2 master
Loading...
Searching...
No Matches
IpSec.h
Go to the documentation of this file.
1
21#ifndef __EFI_IPSEC_PROTOCOL_H__
22#define __EFI_IPSEC_PROTOCOL_H__
23
25
26#define EFI_IPSEC_PROTOCOL_GUID \
27 { \
28 0xdfb386f7, 0xe100, 0x43ad, {0x9c, 0x9a, 0xed, 0x90, 0xd0, 0x8a, 0x5e, 0x12 } \
29 }
30
31#define EFI_IPSEC2_PROTOCOL_GUID \
32 { \
33 0xa3979e64, 0xace8, 0x4ddc, {0xbc, 0x7, 0x4d, 0x66, 0xb8, 0xfd, 0x9, 0x77 } \
34 }
35
38
44 UINT32 FragmentLength;
45 VOID *FragmentBuffer;
47
72typedef
74(EFIAPI *EFI_IPSEC_PROCESS)(
76 IN EFI_HANDLE NicHandle,
77 IN UINT8 IpVer,
78 IN OUT VOID *IpHead,
79 IN UINT8 *LastHead,
80 IN VOID *OptionsBuffer,
81 IN UINT32 OptionsLength,
82 IN OUT EFI_IPSEC_FRAGMENT_DATA **FragmentTable,
83 IN UINT32 *FragmentCount,
84 IN EFI_IPSEC_TRAFFIC_DIR TrafficDirection,
85 OUT EFI_EVENT *RecycleSignal
86 );
87
92// EFI_IPSEC_PROTOCOL can be consumed by both the IPv4 and IPv6 stack.
93// A user can employ this protocol for IPsec package handling in both IPv4
94// and IPv6 environment.
99 BOOLEAN DisabledFlag;
100};
101
185typedef
187(EFIAPI *EFI_IPSEC_PROCESSEXT)(
189 IN EFI_HANDLE NicHandle,
190 IN UINT8 IpVer,
191 IN OUT VOID *IpHead,
192 IN OUT UINT8 *LastHead,
193 IN OUT VOID **OptionsBuffer,
194 IN OUT UINT32 *OptionsLength,
195 IN OUT EFI_IPSEC_FRAGMENT_DATA **FragmentTable,
196 IN OUT UINT32 *FragmentCount,
197 IN EFI_IPSEC_TRAFFIC_DIR TrafficDirection,
198 OUT EFI_EVENT *RecycleSignal
199 );
200
210 EFI_IPSEC_PROCESSEXT ProcessExt;
211 EFI_EVENT DisabledEvent;
212 BOOLEAN DisabledFlag;
213};
214
215extern EFI_GUID gEfiIpSecProtocolGuid;
216extern EFI_GUID gEfiIpSec2ProtocolGuid;
217#endif
EFI_STATUS(EFIAPI * EFI_IPSEC_PROCESSEXT)(IN EFI_IPSEC2_PROTOCOL *This, IN EFI_HANDLE NicHandle, IN UINT8 IpVer, 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)
Definition: IpSec.h:187
EFI_STATUS(EFIAPI * EFI_IPSEC_PROCESS)(IN EFI_IPSEC_PROTOCOL *This, IN EFI_HANDLE NicHandle, IN UINT8 IpVer, IN OUT VOID *IpHead, IN UINT8 *LastHead, IN VOID *OptionsBuffer, IN UINT32 OptionsLength, IN OUT EFI_IPSEC_FRAGMENT_DATA **FragmentTable, IN UINT32 *FragmentCount, IN EFI_IPSEC_TRAFFIC_DIR TrafficDirection, OUT EFI_EVENT *RecycleSignal)
Definition: IpSec.h:74
struct _EFI_IPSEC_FRAGMENT_DATA EFI_IPSEC_FRAGMENT_DATA
EFI_IPSEC_TRAFFIC_DIR
Definition: IpSecConfig.h:129
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_EVENT
Definition: UefiBaseType.h:37
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
BOOLEAN DisabledFlag
State of the interface.
Definition: IpSec.h:99
EFI_IPSEC_PROCESS Process
Handle the IPsec message.
Definition: IpSec.h:97
EFI_EVENT DisabledEvent
Event signaled when the interface is disabled.
Definition: IpSec.h:98
Definition: Base.h:213