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) |
Variables | |
CHAR8 * | mIkev1StateStr [IKE_STATE_NUM] |
CHAR8 * | mIkev2StateStr [IKE_STATE_NUM] |
CHAR8 * | mExchangeStr [] |
CHAR8 * | mIkev1PayloadStr [] |
CHAR8 * | mIkev2PayloadStr [] |
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.
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 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 | 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.
CHAR8* mExchangeStr[] |
Initial value:
{ "IKEv1 Main Exchange", "IKEv1 Info Exchange", "IKEv1 Quick Exchange", "IKEv2 Initial Exchange", "IKEv2 Auth Exchange", "IKEv2 Create Child Exchange", "IKEv2 Info Exchange", "IKE Unknow Exchange" }
Referenced by IpSecDumpPacket().
CHAR8* mIkev1PayloadStr[] |
Initial value:
{ "IKEv1 None Payload", "IKEv1 SA Payload", "IKEv1 Proposal Payload", "IKEv1 Transform Payload", "IKEv1 KE Payload", "IKEv1 ID Payload", "IKEv1 Certificate Payload", "IKEv1 Certificate Request Payload", "IKEv1 Hash Payload", "IKEv1 Signature Payload", "IKEv1 Nonce Payload", "IKEv1 Notify Payload", "IKEv1 Delete Payload", "IKEv1 Vendor Payload" }
Referenced by IpSecDumpPayload().
CHAR8* mIkev1StateStr[IKE_STATE_NUM] |
Initial value:
{ "IKEv1_MAIN_1", "IKEv1_MAIN_2", "IKEv1_MAIN_3", "IKEv1_MAIN_ESTABLISHED", "IKEv1_QUICK_1", "IKEv1_QUICK_2", "IKEv1_QUICK_ESTABLISHED" }
Referenced by IkeDumpState().
CHAR8* mIkev2PayloadStr[] |
Initial value:
{ "IKEv2 SA Payload", "IKEv2 Key Payload", "IKEv2 Identity Initial Payload", "IKEv2 Identity Respond Payload", "IKEv2 Certificate Payload", "IKEv2 Certificate Request Payload", "IKEv2 Auth Payload", "IKEv2 Nonce Payload", "IKEv2 Notify Payload", "IKEv2 Delet Payload", "IKEv2 Vendor Payload", "IKEv2 Traffic Selector Initiator Payload", "IKEv2 Traffic Selector Respond Payload", "IKEv2 Encrypt Payload", "IKEv2 Configuration Payload", "IKEv2 Extensible Authentication Payload" }
Referenced by IpSecDumpPayload().
CHAR8* mIkev2StateStr[IKE_STATE_NUM] |
Initial value:
{ "IKEv2_STATE_INIT", "IKEv2_STATE_AUTH", "IKEv2_STATE_SA_ESTABLISH", "IKEv2_STATE_CREATE_CHILD", "IKEv2_STATE_SA_REKEYING", "IKEv2_STATE_CHILD_SA_ESTABLISHED", "IKEv2_STATE_SA_DELETING" }
Referenced by IkeDumpState().