PcapPlusPlus  19.12
pcpp::RadiusAttribute Class Reference

#include <RadiusLayer.h>

Inheritance diagram for pcpp::RadiusAttribute:
pcpp::TLVRecord

Public Member Functions

 RadiusAttribute (uint8_t *attrRawData)
 
virtual ~RadiusAttribute ()
 
size_t getTotalSize () const
 
size_t getDataSize () const
 
- Public Member Functions inherited from pcpp::TLVRecord
 TLVRecord (uint8_t *recordRawData)
 
 TLVRecord (const TLVRecord &other)
 
virtual ~TLVRecord ()
 
void assign (uint8_t *recordRawData)
 
TLVRecordoperator= (const TLVRecord &other)
 
bool operator== (const TLVRecord &rhs) const
 
uint8_t getType () const
 
uint8_t * getValue () const
 
bool isNull () const
 
bool isNotNull () const
 
uint8_t * getRecordBasePtr () const
 
void purgeRecordData ()
 
template<typename T >
getValueAs (size_t offset=0) const
 
template<typename T >
bool setValue (T newValue, int valueOffset=0)
 

Detailed Description

A wrapper class for RADIUS attributes. This class does not create or modify RADIUS attribute records, but rather serves as a wrapper and provides useful methods for retrieving data from them

Constructor & Destructor Documentation

◆ RadiusAttribute()

pcpp::RadiusAttribute::RadiusAttribute ( uint8_t *  attrRawData)
inline

A c'tor for this class that gets a pointer to the attribute raw data (byte array)

Parameters
[in]attrRawDataA pointer to the attribute raw data

◆ ~RadiusAttribute()

virtual pcpp::RadiusAttribute::~RadiusAttribute ( )
inlinevirtual

A d'tor for this class, currently does nothing

Member Function Documentation

◆ getDataSize()

size_t pcpp::RadiusAttribute::getDataSize ( ) const
inlinevirtual
Returns
The size of the record value (meaning the size of the 'V' part in TLV)

Implements pcpp::TLVRecord.

◆ getTotalSize()

size_t pcpp::RadiusAttribute::getTotalSize ( ) const
inlinevirtual
Returns
The total size of the TLV record (in bytes)

Implements pcpp::TLVRecord.