16 bits id should be enough for threads for a while.
(f)->data_al_so_far[0] = 0; \
(f)->data_al_so_far[1] = 0; \
(f)->de_ctx_id = 0; \
+ (f)->thread_id = 0; \
(f)->alparser = NULL; \
(f)->alstate = NULL; \
(f)->de_state = NULL; \
(f)->data_al_so_far[0] = 0; \
(f)->data_al_so_far[1] = 0; \
(f)->de_ctx_id = 0; \
+ (f)->thread_id = 0; \
if ((f)->de_state != NULL) { \
SCMutexLock(&(f)->de_state_m); \
DetectEngineStateReset((f)->de_state, (STREAM_TOSERVER | STREAM_TOCLIENT)); \
typedef unsigned short FlowRefCount;
#endif
+/** Local Thread ID */
+typedef uint16_t FlowThreadId;
+
/**
* \brief Flow data structure.
*
* de_state and stored sgh ptrs are reset. */
uint32_t de_ctx_id;
+ /** Thread ID for the stream/detect portion of this flow */
+ FlowThreadId thread_id;
+
/** application level storage ptrs.
*
*/