|
|
|
@ -538,6 +538,9 @@ typedef struct Packet_
|
|
|
|
/* tunnel packet ref count */
|
|
|
|
/* tunnel packet ref count */
|
|
|
|
uint16_t tunnel_tpr_cnt;
|
|
|
|
uint16_t tunnel_tpr_cnt;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** tenant id for this packet, if any. If 0 then no tenant was assigned. */
|
|
|
|
|
|
|
|
uint32_t tenant_id;
|
|
|
|
|
|
|
|
|
|
|
|
/* The Packet pool from which this packet was allocated. Used when returning
|
|
|
|
/* The Packet pool from which this packet was allocated. Used when returning
|
|
|
|
* the packet to its owner's stack. If NULL, then allocated with malloc.
|
|
|
|
* the packet to its owner's stack. If NULL, then allocated with malloc.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -758,6 +761,7 @@ void CaptureStatsSetup(ThreadVars *tv, CaptureStats *s);
|
|
|
|
(p)->livedev = NULL; \
|
|
|
|
(p)->livedev = NULL; \
|
|
|
|
PACKET_RESET_CHECKSUMS((p)); \
|
|
|
|
PACKET_RESET_CHECKSUMS((p)); \
|
|
|
|
PACKET_PROFILING_RESET((p)); \
|
|
|
|
PACKET_PROFILING_RESET((p)); \
|
|
|
|
|
|
|
|
p->tenant_id = 0; \
|
|
|
|
} while (0)
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
|
|
#define PACKET_RECYCLE(p) do { \
|
|
|
|
#define PACKET_RECYCLE(p) do { \
|
|
|
|
|