From 170d46989cdc659fe13a566a98aefe673c047a5f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 23 Dec 2024 14:39:58 +0100 Subject: [PATCH] MINOR: tevt/conn: Report intercepted event for L4 rules When a L4 rules interrupts the processing, a termination event is reported for the connection, with the "fd" location. --- src/tcp_rules.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tcp_rules.c b/src/tcp_rules.c index 8bb5d00c9..2a7d0d6ed 100644 --- a/src/tcp_rules.c +++ b/src/tcp_rules.c @@ -578,6 +578,8 @@ int tcp_exec_l4_rules(struct session *sess) goto restart; } end: + if (!result) + conn_report_term_evt(conn, tevt_loc_fd, tevt_type_intercepted); return result; } -- 2.47.2