2 The definition of functions and MACROs used for IPsec debug information printting.
4 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _EFI_IPSEC_DEBUG_H_
10 #define _EFI_IPSEC_DEBUG_H_
12 #include "IkeCommon.h"
13 #include "IkePacket.h"
15 #define IPSEC_DUMP_ADDRESS(Level, Ip, Version) IpSecDumpAddress (Level, Ip, Version)
16 #define IKEV1_DUMP_STATE(Previous, Current) IkeDumpState (Previous, Current, 1)
17 #define IKEV2_DUMP_STATE(Previous, Current) IkeDumpState (Previous, Current, 2)
18 #define IPSEC_DUMP_PACKET(Packet, Direction, IpVersion) IpSecDumpPacket (Packet, Direction, IpVersion)
19 #define IPSEC_DUMP_PAYLOAD(IkePayload) IpSecDumpPayload (IkePayload, 1)
20 #define IKEV2_DUMP_PAYLOAD(IkePayload) IpSecDumpPayload (IkePayload, 2)
21 #define IPSEC_DUMP_BUF(Title, Data, DataSize) IpSecDumpBuf (Title, Data, DataSize)
23 #define IPSEC_DEBUG_BYTE_PER_LINE 8
24 #define IKE_STATE_NUM 7
31 @param[in] Level Debug print error level. Pass to DEBUG().
32 @param[in] Ip Point to specified IP address.
33 @param[in] IpVersion The IP Version.
39 IN EFI_IP_ADDRESS
*Ip
,
44 Print IKE Current states.
46 @param[in] Previous The Previous state of IKE.
47 @param[in] Current The current state of IKE.
48 @param[in] IkeVersion The version of IKE.
61 @param[in] Packet Point to IKE packet to be printed.
62 @param[in] Direction Point to the IKE packet is inbound or outbound.
63 @param[in] IpVersion Specified IP Version.
68 IN IKE_PACKET
*Packet
,
69 IN EFI_IPSEC_TRAFFIC_DIR Direction
,
74 Print the IKE Paylolad.
76 @param[in] IkePayload Point to payload to be printed.
77 @param[in] IkeVersion The specified version of IKE.
82 IN IKE_PAYLOAD
*IkePayload
,
87 Print the buffer in form of Hex.
89 @param[in] Title The strings to be printed before the data of the buffer.
90 @param[in] Data Point to buffer to be printed.
91 @param[in] DataSize The size of the buffer to be printed.