Defines | |
#define | IPSEC_DUMP_ADDRESS(Level, Ip, Version) IpSecDumpAddress (Level, Ip, Version) |
#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, 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 |
#define | IKE_STATE_NUM 7 |
Functions | |
VOID | IpSecDumpAddress (IN UINTN Level, IN EFI_IP_ADDRESS *Ip, IN UINT8 IpVersion) |
VOID | IkeDumpState (IN UINT32 Previous, IN UINT32 Current, IN UINT8 IkeVersion) |
VOID | IpSecDumpPacket (IN IKE_PACKET *Packet, IN EFI_IPSEC_TRAFFIC_DIR Direction, IN UINT8 IpVersion) |
VOID | IpSecDumpPayload (IN IKE_PAYLOAD *IkePayload, IN UINT8 IkeVersion) |
VOID | IpSecDumpBuf (IN CHAR8 *Title, IN UINT8 *Data, IN UINTN DataSize) |
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define IKE_STATE_NUM 7 |
Referenced by IkeDumpState().
#define IKEV1_DUMP_STATE | ( | Previous, | |||
Current | ) | IkeDumpState (Previous, Current, 1) |
#define IKEV2_DUMP_PAYLOAD | ( | IkePayload | ) | IpSecDumpPayload (IkePayload, 2) |
Referenced by Ikev2DecodePayload(), and Ikev2EncodePayload().
#define IKEV2_DUMP_STATE | ( | Previous, | |||
Current | ) | IkeDumpState (Previous, Current, 2) |
#define IPSEC_DEBUG_BYTE_PER_LINE 8 |
Referenced by IpSecDumpBuf().
#define IPSEC_DUMP_ADDRESS | ( | Level, | |||
Ip, | |||||
Version | ) | IpSecDumpAddress (Level, Ip, Version) |
#define IPSEC_DUMP_BUF | ( | Title, | |||
Data, | |||||
DataSize | ) | IpSecDumpBuf (Title, Data, DataSize) |
#define IPSEC_DUMP_PACKET | ( | Packet, | |||
Direction, | |||||
IpVersion | ) | IpSecDumpPacket (Packet, Direction, IpVersion) |
Referenced by Ikev2SendIkePacket().
#define IPSEC_DUMP_PAYLOAD | ( | IkePayload | ) | IpSecDumpPayload (IkePayload, 1) |
VOID IkeDumpState | ( | IN UINT32 | Previous, | |
IN UINT32 | Current, | |||
IN UINT8 | IkeVersion | |||
) |
Print IKE Current states.
[in] | Previous | The Previous state of IKE. |
[in] | Current | The current state of IKE. |
[in] | IkeVersion | The version of IKE. |
References IKE_STATE_NUM, mIkev1StateStr, and mIkev2StateStr.
VOID IpSecDumpAddress | ( | IN UINTN | Level, | |
IN EFI_IP_ADDRESS * | Ip, | |||
IN UINT8 | IpVersion | |||
) |
Print the IP address.
[in] | Level | Debug print error level. Pass to DEBUG(). |
[in] | Ip | Point to specified IP address. |
[in] | IpVersion | The IP Version. |
[in] | Level | Debug print error level. Pass to DEBUG(). |
[in] | Ip | Point to a specified IP address. |
[in] | IpVersion | The IP Version. |
Referenced by IpSecDumpPacket().
VOID IpSecDumpBuf | ( | IN CHAR8 * | Title, | |
IN UINT8 * | Data, | |||
IN UINTN | DataSize | |||
) |
Print the buffer in form of Hex.
[in] | Title | The strings to be printed before the data of the buffer. |
[in] | Data | Point to buffer to be printed. |
[in] | DataSize | The size of the buffer to be printed. |
[in] | Title | The strings to be printed before the data of the buffer. |
[in] | Data | Points to buffer to be printed. |
[in] | DataSize | The size of the buffer to be printed. |
References IPSEC_DEBUG_BYTE_PER_LINE.
Referenced by Ikev2CertGenerateAuthPayload(), and IpSecDumpPayload().
VOID IpSecDumpPacket | ( | IN IKE_PACKET * | Packet, | |
IN EFI_IPSEC_TRAFFIC_DIR | Direction, | |||
IN UINT8 | IpVersion | |||
) |
Print the IKE Packet.
[in] | Packet | Point to IKE packet to be printed. |
[in] | Direction | Point to the IKE packet is inbound or outbound. |
[in] | IpVersion | Specified IP Version. |
References IKE_XCG_TYPE_AUTH, IKE_XCG_TYPE_CREATE_CHILD_SA, IKE_XCG_TYPE_IDENTITY_PROTECT, IKE_XCG_TYPE_INFO, IKE_XCG_TYPE_INFO2, IKE_XCG_TYPE_QM, IKE_XCG_TYPE_SA_INIT, IpSecDumpAddress(), and mExchangeStr.
VOID IpSecDumpPayload | ( | IN IKE_PAYLOAD * | IkePayload, | |
IN UINT8 | IkeVersion | |||
) |
Print the IKE Paylolad.
[in] | IkePayload | Point to payload to be printed. |
[in] | IkeVersion | The specified version of IKE. |
References IpSecDumpBuf(), mIkev1PayloadStr, and mIkev2PayloadStr.