81 struct NflogTLVRawData
88 uint8_t recordValue[];
90 NflogTLVRawData* m_Data;
109 return align<4>(m_Data->recordLen);
118 m_Data =
reinterpret_cast<NflogTLVRawData*
>(recordRawData);
127 static bool canAssign(
const uint8_t* recordRawData,
size_t tlvDataLen)
129 return recordRawData !=
nullptr && tlvDataLen >=
sizeof(NflogTLVRawData::recordLen);
137 return (m_Data ==
nullptr);
145 return m_Data->recordType;
153 return reinterpret_cast<uint8_t*
>(m_Data);
161 return m_Data->recordValue;
254 uint8_t* getTlvsBasePtr()
const
Definition: NflogLayer.h:170
void parseNextLayer() override
NflogLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: NflogLayer.h:178
void computeCalculateFields() override
Definition: NflogLayer.h:236
size_t getHeaderLen() const override
nflog_header * getNflogHeader() const
Definition: NflogLayer.h:187
static bool isDataValid(const uint8_t *data, size_t dataLen)
std::string toString() const override
NflogTlv getTlvByType(NflogTlvType type) const
OsiModelLayer getOsiModelLayer() const override
Definition: NflogLayer.h:240
Definition: NflogLayer.h:79
uint16_t getType() const
Definition: NflogLayer.h:143
bool isNull() const
Definition: NflogLayer.h:135
uint8_t * getRecordBasePtr() const
Definition: NflogLayer.h:151
size_t getTotalSize() const
Definition: NflogLayer.h:105
NflogTlv(uint8_t *recordRawData)
Definition: NflogLayer.h:97
static bool canAssign(const uint8_t *recordRawData, size_t tlvDataLen)
Definition: NflogLayer.h:127
void assign(uint8_t *recordRawData)
Definition: NflogLayer.h:116
uint8_t * getValue() const
Definition: NflogLayer.h:159
Definition: TLVData.h:246
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:368
const ProtocolType NFLOG
Definition: ProtocolType.h:303
NflogTlvType
Definition: NflogLayer.h:36
@ NFULA_IFINDEX_PHYSINDEV
@ NFULA_IFINDEX_PHYSOUTDEV