Skip to content

Commit

Permalink
bypass: really bypass udp flow from first packet
Browse files Browse the repository at this point in the history
Ticket: 7053

As flow state would be overwritten by established...
  • Loading branch information
catenacyber authored and victorjulien committed Jul 4, 2024
1 parent efbf627 commit df5dcfe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,13 @@ void FlowHandlePacketUpdate(Flow *f, Packet *p, ThreadVars *tv, DecodeThreadVars
SCLogDebug("pkt %p FLOW_PKT_ESTABLISHED", p);
p->flowflags |= FLOW_PKT_ESTABLISHED;

FlowUpdateState(f, FLOW_STATE_ESTABLISHED);
if (
#ifdef CAPTURE_OFFLOAD
(f->flow_state != FLOW_STATE_CAPTURE_BYPASSED) &&
#endif
(f->flow_state != FLOW_STATE_LOCAL_BYPASSED)) {
FlowUpdateState(f, FLOW_STATE_ESTABLISHED);
}
}

if (f->flags & FLOW_ACTION_DROP) {
Expand Down

0 comments on commit df5dcfe

Please sign in to comment.