57 if (m_Data ==
nullptr)
60 return static_cast<size_t>(m_Data->recordLen);
65 if (m_Data ==
nullptr)
68 return static_cast<size_t>(m_Data->recordLen) - 2 *
sizeof(uint8_t);
150 TLVRecordBuilder::operator=(other);
170 uint8_t* getAttributesBasePtr()
const
199 RadiusLayer(uint8_t code, uint8_t
id,
const uint8_t* authenticator, uint8_t authenticatorArrSize);
210 RadiusLayer(uint8_t code, uint8_t
id,
const std::string& authenticator);
311 static bool isDataValid(
const uint8_t* udpData,
size_t udpDataLen);
Definition: IpAddress.h:32
Definition: RadiusLayer.h:78
RadiusAttributeBuilder & operator=(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:148
RadiusAttribute build() const
RadiusAttributeBuilder(uint8_t attrType, uint8_t attrValue)
Definition: RadiusLayer.h:98
RadiusAttributeBuilder(uint8_t attrType, const std::string &attrValue)
Definition: RadiusLayer.h:134
RadiusAttributeBuilder(uint8_t attrType, uint32_t attrValue)
Definition: RadiusLayer.h:116
RadiusAttributeBuilder(uint8_t attrType, uint16_t attrValue)
Definition: RadiusLayer.h:107
RadiusAttributeBuilder(uint8_t attrType, const IPv4Address &attrValue)
Definition: RadiusLayer.h:125
RadiusAttributeBuilder(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:141
RadiusAttributeBuilder(uint8_t attrType, const uint8_t *attrValue, uint8_t attrValueLen)
Definition: RadiusLayer.h:88
Definition: RadiusLayer.h:39
~RadiusAttribute() override=default
RadiusAttribute(uint8_t *attrRawData)
Definition: RadiusLayer.h:45
size_t getTotalSize() const override
Definition: RadiusLayer.h:55
size_t getDataSize() const override
Definition: RadiusLayer.h:63
Definition: RadiusLayer.h:166
size_t getHeaderLen() const override
RadiusAttribute getAttribute(uint8_t attrType) const
bool removeAllAttributes()
RadiusAttribute getNextAttribute(RadiusAttribute &attr) const
radius_header * getRadiusHeader() const
Definition: RadiusLayer.h:222
RadiusLayer(uint8_t code, uint8_t id, const uint8_t *authenticator, uint8_t authenticatorArrSize)
~RadiusLayer() override=default
RadiusAttribute getFirstAttribute() const
static bool isDataValid(const uint8_t *udpData, size_t udpDataLen)
RadiusAttribute addAttributeAfter(const RadiusAttributeBuilder &attrBuilder, uint8_t prevAttrType)
std::string getAuthenticatorValue() const
void setAuthenticatorValue(const std::string &authValue)
RadiusLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: RadiusLayer.h:185
RadiusAttribute addAttribute(const RadiusAttributeBuilder &attrBuilder)
size_t getAttributeCount() const
std::string toString() const override
bool removeAttribute(uint8_t attrType)
void parseNextLayer() override
Definition: RadiusLayer.h:329
static std::string getRadiusMessageString(uint8_t radiusMessageCode)
OsiModelLayer getOsiModelLayer() const override
Definition: RadiusLayer.h:339
RadiusLayer(uint8_t code, uint8_t id, const std::string &authenticator)
void computeCalculateFields() override
static bool isRadiusPort(uint16_t port)
Definition: RadiusLayer.h:347
Definition: TLVData.h:419
Definition: TLVData.h:246
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelApplicationLayer
Definition: ProtocolType.h:378
const ProtocolType Radius
Definition: ProtocolType.h:213