MINOR: stream: Replace last_rule_file/line fields by a more generic field
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Oct 2024 10:23:12 +0000 (11:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 31 Oct 2024 15:36:39 +0000 (16:36 +0100)
commitc9fa78e747895e73e5be810b9af555c4028af3cf
treea0aaeb95e50f66b128a385342219a7a68130b814
parentdcf334168cf1774e54cdbaec35a0605c2438b819
MINOR: stream: Replace last_rule_file/line fields by a more generic field

The last evaluated rule is now saved in a generic structure, named
last_entity, with a type to identify it. The idea is to be able to store
other kind of entity that may interrupt a specific processing.

The type of the last evaluated rule is set to 1. It will be replace later by
an enum to be more explicit. In addition, the pointer to the rule itself is
saved instead of its location.

The sample fetch "last_entity" was added to retrieve the information about
it. In this case, it is the rule localtion, the config file containing the
rule followed by the line where the rule is defined, separated by a
colon. This sample fetch is not documented yet.
include/haproxy/stream-t.h
src/http_ana.c
src/stream.c
src/tcp_rules.c