Add IPsec/Ikev2 support.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11219 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/** @file
|
||||
The definition of functions and MACROs used for IPsec debug information print.
|
||||
The definition of functions and MACROs used for IPsec debug information printting.
|
||||
|
||||
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
|
||||
@@ -12,16 +12,18 @@
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _EFI_IPSEC_DEBUG_H_
|
||||
#define _EFI_IPSEC_DEBUG_H_
|
||||
|
||||
#include <Library/DebugLib.h>
|
||||
#include "IkeCommon.h"
|
||||
#include "IkePacket.h"
|
||||
|
||||
#define IPSEC_DUMP_ADDRESS(Level, Ip, Version) IpSecDumpAddress (Level, Ip, Version)
|
||||
#define IPSEC_DUMP_STATE(Previous, Current) IpSecDumpState (Previous, Current)
|
||||
#define IKEV1_DUMP_STATE(Previous, Current) IkeDumpState (Previous, Current, 1)
|
||||
#define IKEV2_DUMP_STATE(Previous, Current) IkeDumpState (Previous, Current, 2)
|
||||
#define IPSEC_DUMP_PACKET(Packet, Direction, IpVersion) IpSecDumpPacket (Packet, Direction, IpVersion)
|
||||
#define IPSEC_DUMP_PAYLOAD(IkePayload) IpSecDumpPayload (IkePayload)
|
||||
#define IPSEC_DUMP_PAYLOAD(IkePayload) IpSecDumpPayload (IkePayload, 1)
|
||||
#define IKEV2_DUMP_PAYLOAD(IkePayload) IpSecDumpPayload (IkePayload, 2)
|
||||
#define IPSEC_DUMP_BUF(Title, Data, DataSize) IpSecDumpBuf (Title, Data, DataSize)
|
||||
|
||||
#define IPSEC_DEBUG_BYTE_PER_LINE 8
|
||||
@@ -43,52 +45,53 @@ IpSecDumpAddress (
|
||||
);
|
||||
|
||||
/**
|
||||
Print IKEv1 Current states.
|
||||
Print IKE Current states.
|
||||
|
||||
@param[in] Previous The Previous state of IKEv1.
|
||||
@param[in] Current The current state of IKEv1.
|
||||
@param[in] Previous The Previous state of IKE.
|
||||
@param[in] Current The current state of IKE.
|
||||
@param[in] IkeVersion The version of IKE.
|
||||
|
||||
**/
|
||||
VOID
|
||||
IpSecDumpState (
|
||||
IkeDumpState (
|
||||
IN UINT32 Previous,
|
||||
IN UINT32 Current
|
||||
IN UINT32 Current,
|
||||
IN UINT8 IkeVersion
|
||||
);
|
||||
|
||||
/**
|
||||
Print the Ike Packet.
|
||||
Print the IKE Packet.
|
||||
|
||||
@param[in] Packet Point to IKE packet to be printed.
|
||||
@param[in] Direction Point to the IKE packet is inbound or outbound.
|
||||
@param[in] IpVersion Specified IP Version.
|
||||
|
||||
**/
|
||||
/*
|
||||
VOID
|
||||
IpSecDumpPacket (
|
||||
IN IKE_PACKET *Packet,
|
||||
IN EFI_IPSEC_TRAFFIC_DIR Direction,
|
||||
IN UINT8 IpVersion
|
||||
);
|
||||
*/
|
||||
|
||||
/**
|
||||
Print the IKE Paylolad.
|
||||
|
||||
@param[in] IkePayload Points to the payload to be printed.
|
||||
|
||||
@param[in] IkePayload Point to payload to be printed.
|
||||
@param[in] IkeVersion The specified version of IKE.
|
||||
|
||||
**/
|
||||
/*
|
||||
VOID
|
||||
IpSecDumpPayload (
|
||||
IN IKE_PAYLOAD *IkePayload
|
||||
IN IKE_PAYLOAD *IkePayload,
|
||||
IN UINT8 IkeVersion
|
||||
);
|
||||
*/
|
||||
|
||||
/**
|
||||
Print the buffer in form of Hex.
|
||||
|
||||
@param[in] Title The strings to be printed before the data of the buffer.
|
||||
@param[in] Data Points to the buffer to be printed.
|
||||
@param[in] Data Point to buffer to be printed.
|
||||
@param[in] DataSize The size of the buffer to be printed.
|
||||
|
||||
**/
|
||||
|
Reference in New Issue
Block a user