We may need to know that a packet has been tagged but is the
first one (and thus is not tagged).
/** We had no alert on flow before this packet */
#define PKT_FIRST_ALERTS BIT_U32(29)
+#define PKT_FIRST_TAG BIT_U32(30)
/** \brief return 1 if the packet is a pseudo packet */
#define PKT_IS_PSEUDOPKT(p) \
* to log it (the alert will log it) */
if (!(iter->flags & TAG_ENTRY_FLAG_SKIPPED_FIRST)) {
iter->flags |= TAG_ENTRY_FLAG_SKIPPED_FIRST;
+ p->flags |= PKT_FIRST_TAG;
} else {
/* Update metrics; remove if tag expired; and set alerts */
switch (iter->metric) {