58 if (m_Data ==
nullptr)
61 return (
size_t)m_Data->recordLen;
66 if (m_Data ==
nullptr)
69 return (
size_t)m_Data->recordLen - 2 *
sizeof(uint8_t);
151 TLVRecordBuilder::operator=(other);
171 uint8_t* getAttributesBasePtr()
const
200 RadiusLayer(uint8_t code, uint8_t
id,
const uint8_t* authenticator, uint8_t authenticatorArrSize);
211 RadiusLayer(uint8_t code, uint8_t
id,
const std::string& authenticator);
313 static bool isDataValid(
const uint8_t* udpData,
size_t udpDataLen);
Definition: IpAddress.h:32
Definition: RadiusLayer.h:79
RadiusAttributeBuilder & operator=(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:149
RadiusAttribute build() const
RadiusAttributeBuilder(uint8_t attrType, uint8_t attrValue)
Definition: RadiusLayer.h:99
RadiusAttributeBuilder(uint8_t attrType, const std::string &attrValue)
Definition: RadiusLayer.h:135
RadiusAttributeBuilder(uint8_t attrType, uint32_t attrValue)
Definition: RadiusLayer.h:117
RadiusAttributeBuilder(uint8_t attrType, uint16_t attrValue)
Definition: RadiusLayer.h:108
RadiusAttributeBuilder(uint8_t attrType, const IPv4Address &attrValue)
Definition: RadiusLayer.h:126
RadiusAttributeBuilder(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:142
RadiusAttributeBuilder(uint8_t attrType, const uint8_t *attrValue, uint8_t attrValueLen)
Definition: RadiusLayer.h:89
Definition: RadiusLayer.h:39
size_t getTotalSize() const
Definition: RadiusLayer.h:56
RadiusAttribute(uint8_t *attrRawData)
Definition: RadiusLayer.h:45
size_t getDataSize() const
Definition: RadiusLayer.h:64
virtual ~RadiusAttribute()
Definition: RadiusLayer.h:51
Definition: RadiusLayer.h:167
RadiusAttribute getAttribute(uint8_t attrType) const
bool removeAllAttributes()
void computeCalculateFields()
RadiusAttribute getNextAttribute(RadiusAttribute &attr) const
radius_header * getRadiusHeader() const
Definition: RadiusLayer.h:224
std::string toString() const
RadiusLayer(uint8_t code, uint8_t id, const uint8_t *authenticator, uint8_t authenticatorArrSize)
~RadiusLayer()
Definition: RadiusLayer.h:216
RadiusAttribute getFirstAttribute() const
static bool isDataValid(const uint8_t *udpData, size_t udpDataLen)
RadiusAttribute addAttributeAfter(const RadiusAttributeBuilder &attrBuilder, uint8_t prevAttrType)
void parseNextLayer()
Definition: RadiusLayer.h:331
std::string getAuthenticatorValue() const
void setAuthenticatorValue(const std::string &authValue)
RadiusLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: RadiusLayer.h:186
RadiusAttribute addAttribute(const RadiusAttributeBuilder &attrBuilder)
size_t getAttributeCount() const
OsiModelLayer getOsiModelLayer() const
Definition: RadiusLayer.h:341
bool removeAttribute(uint8_t attrType)
static std::string getRadiusMessageString(uint8_t radiusMessageCode)
RadiusLayer(uint8_t code, uint8_t id, const std::string &authenticator)
size_t getHeaderLen() const
static bool isRadiusPort(uint16_t port)
Definition: RadiusLayer.h:349
Definition: TLVData.h:413
Definition: TLVData.h:239
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelApplicationLayer
Definition: ProtocolType.h:368
const ProtocolType Radius
Definition: ProtocolType.h:213