1 #ifndef PACKETPP_RADIUS_LAYER 2 #define PACKETPP_RADIUS_LAYER 59 return (
size_t)m_Data->recordLen;
64 return (
size_t)m_Data->recordLen - 2*
sizeof(uint8_t);
146 TLVRecordBuilder::operator=(other);
168 uint8_t* getAttributesBasePtr()
const {
return m_Data +
sizeof(
radius_header); }
182 Layer(data, dataLen, prevLayer, packet)
205 RadiusLayer(uint8_t code, uint8_t
id,
const std::string authenticator);
221 std::string getAuthenticatorValue()
const;
227 void setAuthenticatorValue(
const std::string& authValue);
235 static std::string getRadiusMessageString(uint8_t radiusMessageCode);
263 size_t getAttributeCount()
const;
287 bool removeAttribute(uint8_t attrType);
293 bool removeAllAttributes();
301 static bool isDataValid(
const uint8_t* udpData,
size_t udpDataLen);
307 static inline bool isRadiusPort(uint16_t port);
314 size_t getHeaderLen()
const;
324 void computeCalculateFields();
326 std::string toString()
const;
349 #endif // PACKETPP_RADIUS_LAYER
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:298
RadiusAttributeBuilder(uint8_t attrType, uint32_t attrValue)
Definition: RadiusLayer.h:112
RadiusAttributeBuilder(uint8_t attrType, const std::string &attrValue)
Definition: RadiusLayer.h:130
Definition: ProtocolType.h:313
Definition: TLVData.h:363
radius_header * getRadiusHeader() const
Definition: RadiusLayer.h:216
RadiusLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: RadiusLayer.h:181
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:40
RadiusAttributeBuilder(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:137
Definition: TLVData.h:207
RadiusAttributeBuilder & operator=(const RadiusAttributeBuilder &other)
Definition: RadiusLayer.h:144
const ProtocolType Radius
Definition: ProtocolType.h:208
static bool isRadiusPort(uint16_t port)
Definition: RadiusLayer.h:334
~RadiusLayer()
Definition: RadiusLayer.h:210
Definition: IpAddress.h:27
virtual ~RadiusAttribute()
Definition: RadiusLayer.h:53
RadiusAttributeBuilder(uint8_t attrType, uint8_t attrValue)
Definition: RadiusLayer.h:94
RadiusAttributeBuilder(uint8_t attrType, const IPv4Address &attrValue)
Definition: RadiusLayer.h:121
RadiusAttribute(uint8_t *attrRawData)
Definition: RadiusLayer.h:48
OsiModelLayer getOsiModelLayer() const
Definition: RadiusLayer.h:328
Definition: RadiusLayer.h:74
size_t getDataSize() const
Definition: RadiusLayer.h:62
RadiusAttributeBuilder(uint8_t attrType, uint16_t attrValue)
Definition: RadiusLayer.h:103
Definition: RadiusLayer.h:162
void parseNextLayer()
Definition: RadiusLayer.h:319