]>
git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/IpSecDxe/IpSecDebug.h
2 The definition of functions and MACROs used for IPsec debug information print.
4 Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php.
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _EFI_IPSEC_DEBUG_H_
17 #define _EFI_IPSEC_DEBUG_H_
19 #include <Library/DebugLib.h>
21 #define IPSEC_DUMP_ADDRESS(Level, Ip, Version) IpSecDumpAddress (Level, Ip, Version)
22 #define IPSEC_DUMP_STATE(Previous, Current) IpSecDumpState (Previous, Current)
23 #define IPSEC_DUMP_PACKET(Packet, Direction, IpVersion) IpSecDumpPacket (Packet, Direction, IpVersion)
24 #define IPSEC_DUMP_PAYLOAD(IkePayload) IpSecDumpPayload (IkePayload)
25 #define IPSEC_DUMP_BUF(Title, Data, DataSize) IpSecDumpBuf (Title, Data, DataSize)
27 #define IPSEC_DEBUG_BYTE_PER_LINE 8
33 @param[in] Level Debug print error level. Pass to DEBUG().
34 @param[in] Ip Point to specified IP address.
35 @param[in] IpVersion The IP Version.
41 IN EFI_IP_ADDRESS
*Ip
,
46 Print IKEv1 Current states.
48 @param[in] Previous The Previous state of IKEv1.
49 @param[in] Current The current state of IKEv1.
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.
69 IN IKE_PACKET *Packet,
70 IN EFI_IPSEC_TRAFFIC_DIR Direction,
76 Print the IKE Paylolad.
78 @param[in] IkePayload Points to the payload to be printed.
84 IN IKE_PAYLOAD *IkePayload
88 Print the buffer in form of Hex.
90 @param[in] Title The strings to be printed before the data of the buffer.
91 @param[in] Data Points to the buffer to be printed.
92 @param[in] DataSize The size of the buffer to be printed.