|
PcapPlusPlus
19.12
|
Go to the documentation of this file. 1 #ifndef PACKETPP_RADIUS_LAYER
2 #define PACKETPP_RADIUS_LAYER
64 return (
size_t)m_Data->
recordLen - 2*
sizeof(uint8_t);
158 uint8_t* getAttributesBasePtr()
const {
return m_Data +
sizeof(
radius_header); }
172 Layer(data, dataLen, prevLayer, packet)
184 RadiusLayer(uint8_t code, uint8_t
id,
const uint8_t* authenticator, uint8_t authenticatorArrSize);
195 RadiusLayer(uint8_t code, uint8_t
id,
const std::string authenticator);
313 static bool isDataValid(
const uint8_t* udpData,
size_t udpDataLen);
318 #endif // PACKETPP_RADIUS_LAYER
OsiModelLayer
Definition: ProtocolType.h:224
RadiusAttribute getFirstAttribute() const
Definition: IpAddress.h:119
RadiusAttribute addAttributeAfter(const RadiusAttributeBuilder &attrBuilder, uint8_t prevAttrType)
RadiusAttributeBuilder(uint8_t attrType, const uint8_t *attrValue, uint8_t attrValueLen)
Definition: RadiusLayer.h:85
size_t getTotalSize() const
Definition: RadiusLayer.h:57
Definition: RadiusLayer.h:74
Definition: ProtocolType.h:206
static std::string getRadiusMessageString(uint8_t radiusMessageCode)
size_t getDataSize() const
Definition: RadiusLayer.h:62
RadiusAttributeBuilder(uint8_t attrType, const IPv4Address &attrValue)
Definition: RadiusLayer.h:121
radius_header * getRadiusHeader() const
Definition: RadiusLayer.h:206
bool removeAttribute(uint8_t attrType)
Definition: RadiusLayer.h:40
bool removeAllAttributes()
virtual ~RadiusAttribute()
Definition: RadiusLayer.h:53
static bool isDataValid(const uint8_t *udpData, size_t udpDataLen)
RadiusAttribute(uint8_t *attrRawData)
Definition: RadiusLayer.h:48
RadiusLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: RadiusLayer.h:171
RadiusAttributeBuilder(uint8_t attrType, const std::string &attrValue)
Definition: RadiusLayer.h:130
void setAuthenticatorValue(const std::string &authValue)
RadiusAttributeBuilder(uint8_t attrType, uint32_t attrValue)
Definition: RadiusLayer.h:112
RadiusAttributeBuilder(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:137
RadiusAttribute build() const
std::string toString() const
The main namespace for the PcapPlusPlus lib.
RadiusAttribute addAttribute(const RadiusAttributeBuilder &attrBuilder)
Definition: TLVData.h:351
Definition: RadiusLayer.h:152
Definition: ProtocolType.h:235
RadiusAttributeBuilder(uint8_t attrType, uint16_t attrValue)
Definition: RadiusLayer.h:103
void computeCalculateFields()
size_t getAttributeCount() const
Definition: TLVData.h:197
void parseNextLayer()
Definition: RadiusLayer.h:296
OsiModelLayer getOsiModelLayer() const
Definition: RadiusLayer.h:305
std::string getAuthenticatorValue() const
~RadiusLayer()
Definition: RadiusLayer.h:200
uint8_t recordLen
Definition: TLVData.h:33
RadiusAttribute getAttribute(uint8_t attrType) const
size_t getHeaderLen() const
RadiusAttributeBuilder(uint8_t attrType, uint8_t attrValue)
Definition: RadiusLayer.h:94
RadiusAttribute getNextAttribute(RadiusAttribute &attr) const