81 struct NflogTLVRawData
88 uint8_t recordValue[];
90 NflogTLVRawData* m_Data;
109 return align<4>(m_Data->recordLen);
118 m_Data = (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 (uint8_t*)m_Data;
161 return m_Data->recordValue;
255 uint8_t* getTlvsBasePtr()
const
Definition: NflogLayer.h:170
NflogLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: NflogLayer.h:178
OsiModelLayer getOsiModelLayer() const
Definition: NflogLayer.h:241
nflog_header * getNflogHeader() const
Definition: NflogLayer.h:188
std::string toString() const
size_t getHeaderLen() const
static bool isDataValid(const uint8_t *data, size_t dataLen)
NflogTlv getTlvByType(NflogTlvType type) const
void computeCalculateFields()
Definition: NflogLayer.h:237
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:239
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:358
const ProtocolType NFLOG
Definition: ProtocolType.h:303
NflogTlvType
Definition: NflogLayer.h:36
@ NFULA_IFINDEX_PHYSINDEV
@ NFULA_IFINDEX_PHYSOUTDEV