]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/IpSecDxe/IkePacket.h
2 IKE Packet related definitions and function declarations.
4 Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _IKE_V1_PACKET_H_
11 #define _IKE_V1_PACKET_H_
15 #define IKE_PACKET_REF(p) ((p)->RefCount++)
18 Allocate a buffer for the IKE_PACKET and intitalize its Header and payloadlist.
20 @return The pointer of the IKE_PACKET.
30 Free the IkePacket by the specified IKE_PACKET pointer.
32 @param[in] IkePacket The pointer of the IKE_PACKET to be freed.
37 IN IKE_PACKET
*IkePacket
42 Copy the NetBuf into a IKE_PACKET sturcture.
44 Create a IKE_PACKET and fill the received IKE header into the header of IKE_PACKET
45 and copy the recieved packet without IKE HEADER to the PayloadBuf of IKE_PACKET.
47 @param[in] Netbuf The pointer of the Netbuf which contains the whole received
50 @return The pointer of the IKE_PACKET which contains the received packet.
59 Convert the format from IKE_PACKET to NetBuf.
61 @param[in] SessionCommon Pointer of related IKE_COMMON_SESSION
62 @param[in] IkePacket Pointer of IKE_PACKET to be copy to NetBuf
63 @param[in] IkeType The IKE type to pointer the packet is for which IKE
64 phase. Now it supports IKE_SA_TYPE, IKE_CHILDSA_TYPE,
67 @return A pointer of Netbuff which contains the contents of the IKE_PACKE in network order.
71 IN UINT8
*SessionCommon
,
72 IN IKE_PACKET
*IkePacket
,