Functions | |
UINTN | GetVerFromAddrInfo (IN EFI_IP_ADDRESS_INFO *AddressInfo) |
UINTN | GetVerFromIpAddr (IN EFI_IP_ADDRESS *Address) |
VOID | DumpAsciiString (IN CHAR8 *Str, IN UINTN Length) |
VOID | DumpBuf (IN UINT8 *Data, IN UINTN Length) |
VOID | DumpAddressInfo (IN EFI_IP_ADDRESS_INFO *AddressInfo) |
VOID | DumpIpAddress (IN EFI_IP_ADDRESS *IpAddress) |
VOID | DumpSpdSelector (IN EFI_IPSEC_SPD_SELECTOR *Selector) |
EFI_STATUS | DumpSpdEntry (IN EFI_IPSEC_SPD_SELECTOR *Selector, IN EFI_IPSEC_SPD_DATA *Data, IN UINTN *EntryIndex) |
EFI_STATUS | DumpSadEntry (IN EFI_IPSEC_SA_ID *SaId, IN EFI_IPSEC_SA_DATA2 *Data, IN UINTN *EntryIndex) |
EFI_STATUS | DumpPadEntry (IN EFI_IPSEC_PAD_ID *PadId, IN EFI_IPSEC_PAD_DATA *Data, IN UINTN *EntryIndex) |
EFI_STATUS | ListPolicyEntry (IN EFI_IPSEC_CONFIG_DATA_TYPE DataType, IN LIST_ENTRY *ParamPackage) |
Variables | |
VISIT_POLICY_ENTRY | mDumpPolicyEntry [] |
Copyright (c) 2009 - 2011, 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 DumpAddressInfo | ( | IN EFI_IP_ADDRESS_INFO * | AddressInfo | ) |
Private function called to print EFI_IP_ADDRESS_INFO content.
[in] | AddressInfo | The pointer to the EFI_IP_ADDRESS_INFO structure. |
References GetVerFromAddrInfo().
Referenced by DumpPadEntry(), and DumpSpdSelector().
VOID DumpAsciiString | ( | IN CHAR8 * | Str, | |
IN UINTN | Length | |||
) |
Private function called to print an ASCII string in unicode char format.
[in] | Str | The pointer to the ASCII string. |
[in] | Length | The value of the ASCII string length. |
Referenced by DumpPadEntry(), and DumpSadEntry().
VOID DumpBuf | ( | IN UINT8 * | Data, | |
IN UINTN | Length | |||
) |
Private function called to print a buffer in Hex format.
[in] | Data | The pointer to the buffer. |
[in] | Length | The size of the buffer. |
Referenced by DumpSadEntry().
VOID DumpIpAddress | ( | IN EFI_IP_ADDRESS * | IpAddress | ) |
Private function called to print EFI_IP_ADDRESS content.
[in] | IpAddress | The pointer to the EFI_IP_ADDRESS structure. |
References GetVerFromIpAddr().
Referenced by DumpSadEntry(), and DumpSpdEntry().
EFI_STATUS DumpPadEntry | ( | IN EFI_IPSEC_PAD_ID * | PadId, | |
IN EFI_IPSEC_PAD_DATA * | Data, | |||
IN UINTN * | EntryIndex | |||
) |
Print EFI_IPSEC_PAD_ID and EFI_IPSEC_PAD_DATA content.
[in] | PadId | The pointer to the EFI_IPSEC_PAD_ID structure. |
[in] | Data | The pointer to the EFI_IPSEC_PAD_DATA structure. |
[in] | EntryIndex | The pointer to the Index in the PAD Database. |
EFI_SUCCESS | Dump PAD information successfully. |
References DumpAddressInfo(), DumpAsciiString(), MapIntegerToString(), mMapAuthMethod, and mMapAuthProto.
EFI_STATUS DumpSadEntry | ( | IN EFI_IPSEC_SA_ID * | SaId, | |
IN EFI_IPSEC_SA_DATA2 * | Data, | |||
IN UINTN * | EntryIndex | |||
) |
Print EFI_IPSEC_SA_ID and EFI_IPSEC_SA_DATA2 content.
[in] | SaId | The pointer to the EFI_IPSEC_SA_ID structure. |
[in] | Data | The pointer to the EFI_IPSEC_SA_DATA2 structure. |
[in] | EntryIndex | The pointer to the Index in the SAD Database. |
EFI_SUCCESS | Dump SAD information successfully. |
References DumpAsciiString(), DumpBuf(), DumpIpAddress(), DumpSpdSelector(), MapIntegerToString(), mMapAuthAlgo, mMapEncAlgo, mMapIpSecMode, and mMapIpSecProtocol.
EFI_STATUS DumpSpdEntry | ( | IN EFI_IPSEC_SPD_SELECTOR * | Selector, | |
IN EFI_IPSEC_SPD_DATA * | Data, | |||
IN UINTN * | EntryIndex | |||
) |
Print EFI_IPSEC_SPD_SELECTOR and EFI_IPSEC_SPD_DATA content.
[in] | Selector | The pointer to the EFI_IPSEC_SPD_SELECTOR structure. |
[in] | Data | The pointer to the EFI_IPSEC_SPD_DATA structure. |
[in] | EntryIndex | The pointer to the Index in SPD Database. |
EFI_SUCCESS | Dump SPD information successfully. |
References DumpIpAddress(), DumpSpdSelector(), MapIntegerToString(), mMapAuthAlgo, mMapDfOption, mMapEncAlgo, mMapIpSecAction, mMapIpSecMode, and mMapIpSecProtocol.
VOID DumpSpdSelector | ( | IN EFI_IPSEC_SPD_SELECTOR * | Selector | ) |
Private function called to print EFI_IPSEC_SPD_SELECTOR content.
[in] | Selector | The pointer to the EFI_IPSEC_SPD_SELECTOR structure. |
References DumpAddressInfo(), EFI_IP4_PROTO_ICMP, EFI_IP4_PROTO_TCP, EFI_IP4_PROTO_UDP, EFI_IPSEC_ANY_PORT, MapIntegerToString(), and mMapIpProtocol.
Referenced by DumpSadEntry(), and DumpSpdEntry().
UINTN GetVerFromAddrInfo | ( | IN EFI_IP_ADDRESS_INFO * | AddressInfo | ) |
Private function called to get the version infomation from an EFI_IP_ADDRESS_INFO structure.
[in] | AddressInfo | The pointer to the EFI_IP_ADDRESS_INFO structure. |
Referenced by DumpAddressInfo().
UINTN GetVerFromIpAddr | ( | IN EFI_IP_ADDRESS * | Address | ) |
Private function called to get the version information from a EFI_IP_ADDRESS structure.
[in] | Address | The pointer to the EFI_IP_ADDRESS structure. |
Referenced by DumpIpAddress().
EFI_STATUS ListPolicyEntry | ( | IN EFI_IPSEC_CONFIG_DATA_TYPE | DataType, | |
IN LIST_ENTRY * | ParamPackage | |||
) |
Print all entry information in the database according to datatype.
[in] | DataType | The value of EFI_IPSEC_CONFIG_DATA_TYPE. |
[in] | ParamPackage | The pointer to the ParamPackage list. |
EFI_SUCCESS | Dump all information successfully. | |
Others | Some mistaken case. |
References ForeachPolicyEntry(), and mDumpPolicyEntry.
Referenced by InitializeIpSecConfig().
Initial value:
{ (VISIT_POLICY_ENTRY) DumpSpdEntry, (VISIT_POLICY_ENTRY) DumpSadEntry, (VISIT_POLICY_ENTRY) DumpPadEntry }
Referenced by ListPolicyEntry().