Skip to content

Commit

Permalink
flow: Swap thread_ids
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 3c57459)
  • Loading branch information
jlucovsky committed Mar 30, 2024
1 parent 4331da4 commit 158018f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 158018f

Please sign in to comment.