PcapPlusPlus  Next
pcpp::LdapSearchRequestLayer::DerefAliases Class Reference

#include <LdapLayer.h>

Public Types

enum  Value : uint8_t {
  NeverDerefAliases = 0 , DerefInSearching = 1 , DerefFindingBaseObj = 2 , DerefAlways = 3 ,
  Unknown = 255
}
 

Public Member Functions

constexpr DerefAliases (Value value)
 
std::string toString () const
 

Static Public Member Functions

static DerefAliases fromUintValue (uint8_t value)
 

Detailed Description

An enum wrapper class for LDAP search request dereferencing aliases

Member Enumeration Documentation

◆ Value

Define enum types and the corresponding int values

Enumerator
NeverDerefAliases 

Never dereferences aliases.

DerefInSearching 

Dereferences aliases only after name resolution.

DerefFindingBaseObj 

Dereferences aliases only during name resolution.

DerefAlways 

Always dereference aliases.

Unknown 

Unknown value.

Constructor & Destructor Documentation

◆ DerefAliases()

constexpr pcpp::LdapSearchRequestLayer::DerefAliases::DerefAliases ( Value  value)
inlineconstexpr

Construct DerefAliases from Value enum

Parameters
[in]valuethe dereference alias enum value

Member Function Documentation

◆ fromUintValue()

static DerefAliases pcpp::LdapSearchRequestLayer::DerefAliases::fromUintValue ( uint8_t  value)
static

A static method that creates DerefAliases from an integer value

Parameters
[in]valueThe dereference alias integer value
Returns
The dereference alias that corresponds to the integer value. If the integer value doesn't corresponds to any enum value, DerefAliases::Unknown is returned

◆ toString()

std::string pcpp::LdapSearchRequestLayer::DerefAliases::toString ( ) const
Returns
A string representation of the dereference alias value