flow: Swap thread_ids

Issue: 6835

When swapping the flow's direction, also swap the thread_ids.

This should help with the issues identified in
https://redmine.openinfosecfoundation.org/issues/2725
pull/10652/head
Jeff Lucovsky 12 months ago committed by Victor Julien
parent 9ad73faa0a
commit 3c5745978f

@ -291,6 +291,8 @@ void FlowSwap(Flow *f)
FlowSwapFlags(f);
FlowSwapFileFlags(f);
SWAP_VARS(FlowThreadId, f->thread_id[0], f->thread_id[1]);
if (f->proto == IPPROTO_TCP) {
TcpStreamFlowSwap(f);
}

Loading…
Cancel
Save