1 #ifndef PACKETPP_NFLOG_LAYER 2 #define PACKETPP_NFLOG_LAYER 82 struct NflogTLVRawData
89 uint8_t recordValue[];
91 NflogTLVRawData* m_Data;
99 assign(recordRawData);
108 return align<4>(m_Data->recordLen);
117 m_Data = (NflogTLVRawData*)recordRawData;
125 return (m_Data ==
nullptr);
131 uint16_t
getType()
const {
return m_Data->recordType; }
141 uint8_t*
getValue()
const {
return m_Data->recordValue; }
178 uint8_t getVersion();
184 uint16_t getResourceId();
199 void parseNextLayer();
204 size_t getHeaderLen()
const;
211 std::string toString()
const;
221 static bool isDataValid(
const uint8_t* data,
size_t dataLen);
224 uint8_t* getTlvsBasePtr()
const {
return m_Data +
sizeof(
nflog_header); }
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:333
const ProtocolType NFLOG
Definition: ProtocolType.h:298
Definition: ProtocolType.h:338
size_t getTotalSize() const
Definition: NflogLayer.h:105
bool isNull() const
Definition: NflogLayer.h:123
Definition: TLVData.h:217
void computeCalculateFields()
Definition: NflogLayer.h:209
NflogLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: NflogLayer.h:157
uint8_t * getValue() const
Definition: NflogLayer.h:141
Definition: NflogLayer.h:148
nflog_header * getNflogHeader() const
Definition: NflogLayer.h:165
uint8_t * getRecordBasePtr() const
Definition: NflogLayer.h:136
uint16_t getType() const
Definition: NflogLayer.h:131
void assign(uint8_t *recordRawData)
Definition: NflogLayer.h:115
Definition: NflogLayer.h:79
NflogTlv(uint8_t *recordRawData)
Definition: NflogLayer.h:97
OsiModelLayer getOsiModelLayer() const
Definition: NflogLayer.h:213
NflogTlvType
Definition: NflogLayer.h:36