Skip to content

Commit c1d7c19

Browse files
committed
CTT - update Packet structure
1 parent 2b5f040 commit c1d7c19

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/ipfixprobe/packet.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@
3838

3939
#include <ipfixprobe/ipaddr.hpp>
4040
#include <ipfixprobe/flowifc.hpp>
41+
#include <ipfixprobe/cttmeta.hpp>
4142

4243
namespace ipxp {
4344

4445
/**
4546
* \brief Structure for storing parsed packet fields
4647
*/
4748
struct Packet : public Record {
48-
struct timeval ts;
49+
timeval ts;
4950

5051
uint8_t dst_mac[6];
5152
uint8_t src_mac[6];
@@ -101,6 +102,10 @@ struct Packet : public Record {
101102
uint16_t buffer_size; /**< Size of buffer */
102103

103104
bool source_pkt; /**< Direction of packet from flow point of view */
105+
#ifdef WITH_CTT
106+
Metadata_CTT cttmeta; /**< Metadata from CTT */
107+
bool cttmeta_valid; /**< True if CTT metadata is valid */
108+
#endif /* WITH_CTT */
104109

105110
/**
106111
* \brief Constructor.
@@ -118,6 +123,9 @@ struct Packet : public Record {
118123
custom(nullptr), custom_len(0),
119124
buffer(nullptr), buffer_size(0),
120125
source_pkt(true)
126+
#ifdef WITH_CTT
127+
,cttmeta_valid(false)
128+
#endif /* WITH_CTT */
121129
{
122130
}
123131
};

0 commit comments

Comments
 (0)