File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 3838
3939#include < ipfixprobe/ipaddr.hpp>
4040#include < ipfixprobe/flowifc.hpp>
41+ #include < ipfixprobe/cttmeta.hpp>
4142
4243namespace ipxp {
4344
4445/* *
4546 * \brief Structure for storing parsed packet fields
4647 */
4748struct 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};
You can’t perform that action at this time.
0 commit comments