PcapPlusPlus  24.09
pcpp::LdapUnbindRequestLayer Class Reference

#include <LdapLayer.h>

Inheritance diagram for pcpp::LdapUnbindRequestLayer:
pcpp::LdapLayer pcpp::Layer pcpp::IDataContainer

Public Member Functions

 LdapUnbindRequestLayer (uint16_t messageId, const std::vector< LdapControl > &controls=std::vector< LdapControl >())
 
LdapOperationType getLdapOperationType () const override
 
- Public Member Functions inherited from pcpp::LdapLayer
 LdapLayer (uint16_t messageId, LdapOperationType operationType, const std::vector< Asn1Record * > &messageRecords, const std::vector< LdapControl > &controls=std::vector< LdapControl >())
 
Asn1SequenceRecordgetRootAsn1Record () const
 
Asn1ConstructedRecordgetLdapOperationAsn1Record () const
 
uint16_t getMessageID () const
 
std::vector< LdapControlgetControls () const
 
template<typename Method , typename ResultType >
bool tryGet (Method method, ResultType &result)
 
void parseNextLayer () override
 
size_t getHeaderLen () const override
 
void computeCalculateFields () override
 
OsiModelLayer getOsiModelLayer () const override
 
std::string toString () const override
 
- Public Member Functions inherited from pcpp::Layer
virtual ~Layer ()
 
LayergetNextLayer () const
 
LayergetPrevLayer () const
 
ProtocolType getProtocol () const
 
bool isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const
 
uint8_t * getData () const
 
size_t getDataLen () const
 
uint8_t * getLayerPayload () const
 
size_t getLayerPayloadSize () const
 
bool isAllocatedToPacket () const
 
void copyData (uint8_t *toArr) const
 
uint8_t * getDataPtr (size_t offset=0) const
 

Additional Inherited Members

- Static Public Member Functions inherited from pcpp::LdapLayer
static bool isLdapPort (uint16_t port)
 
static LdapLayerparseLdapMessage (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
 

Detailed Description

Represents LDAP unbind operation

Constructor & Destructor Documentation

◆ LdapUnbindRequestLayer()

pcpp::LdapUnbindRequestLayer::LdapUnbindRequestLayer ( uint16_t  messageId,
const std::vector< LdapControl > &  controls = std::vector< LdapControl >() 
)
explicit

A constructor to create a new LDAP unbind message

Parameters
[in]messageIdThe LDAP message ID
[in]controlsA vector of LDAP controls. This is an optional parameter, if not provided the message will be created without LDAP controls

Member Function Documentation

◆ getLdapOperationType()

LdapOperationType pcpp::LdapUnbindRequestLayer::getLdapOperationType ( ) const
inlineoverridevirtual
Returns
The LDAP operation of this message. If the Operation ASN.1 record is malformed, an exception is thrown

Reimplemented from pcpp::LdapLayer.