NetworkPkg/Application/IpsecConfig/Dump.c File Reference


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 []

Detailed Description

The implementation of dump policy entry function in IpSecConfig application.

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.


Function Documentation

VOID DumpAddressInfo ( IN EFI_IP_ADDRESS_INFO *  AddressInfo  ) 

Private function called to print EFI_IP_ADDRESS_INFO content.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.

Parameters:
[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.
Return values:
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.

Parameters:
[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.
Return values:
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.

Parameters:
[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.
Return values:
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.

Parameters:
[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.

Parameters:
[in] AddressInfo The pointer to the EFI_IP_ADDRESS_INFO structure.
Returns:
the value of version.

Referenced by DumpAddressInfo().

UINTN GetVerFromIpAddr ( IN EFI_IP_ADDRESS *  Address  ) 

Private function called to get the version information from a EFI_IP_ADDRESS structure.

Parameters:
[in] Address The pointer to the EFI_IP_ADDRESS structure.
Returns:
The value of the version.

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.

Parameters:
[in] DataType The value of EFI_IPSEC_CONFIG_DATA_TYPE.
[in] ParamPackage The pointer to the ParamPackage list.
Return values:
EFI_SUCCESS Dump all information successfully.
Others Some mistaken case.

References ForeachPolicyEntry(), and mDumpPolicyEntry.

Referenced by InitializeIpSecConfig().


Variable Documentation


Generated on Mon Sep 28 08:49:05 2015 for NetworkPkg[ALL] by  doxygen 1.5.7.1