DeStateStoreFileNoMatchCnt(destate, file_no_match, flags);
if (DeStateStoreFilestoreSigsCantMatch(det_ctx->sgh, destate, flags) == 1) {
FileDisableStoringForTransaction(f, flags & (STREAM_TOCLIENT | STREAM_TOSERVER), tx_id);
- destate->dir_state[flags & STREAM_TOSERVER ? 0 : 1].flags |= DETECT_ENGINE_STATE_FLAG_FILE_STORE_DISABLED;
}
}
/* first bit position after the built-ins */
#define DE_STATE_FLAG_BASE 4UL
-/* state flags */
-#define DETECT_ENGINE_STATE_FLAG_FILE_STORE_DISABLED 0x0001
-#define DETECT_ENGINE_STATE_FLAG_FILE_TC_NEW 0x0002
-#define DETECT_ENGINE_STATE_FLAG_FILE_TS_NEW 0x0004
+/* state flags
+ *
+ * Used by app-layer-parsers to notify us that new files
+ * are available in the tx.
+ */
+#define DETECT_ENGINE_STATE_FLAG_FILE_TC_NEW BIT_U8(0)
+#define DETECT_ENGINE_STATE_FLAG_FILE_TS_NEW BIT_U8(1)
/* We have 2 possible state values to be used by ContinueDetection() while
* trying to figure if we have fresh state to install or not.