From: Christopher Faulet Date: Mon, 23 Dec 2024 13:39:58 +0000 (+0100) Subject: MINOR: tevt/conn: Report intercepted event for L4 rules X-Git-Tag: v3.2-dev5~61 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=170d46989cdc659fe13a566a98aefe673c047a5f;p=thirdparty%2Fhaproxy.git 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. --- 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; }