MINOR: actions: add "from" information
This struct member is used to specify who is the rule caller. It permits
to use one function for differents callers.
diff --git a/src/proto_tcp.c b/src/proto_tcp.c
index 42f5619..2dab423 100644
--- a/src/proto_tcp.c
+++ b/src/proto_tcp.c
@@ -1484,6 +1484,7 @@
kw = tcp_res_cont_action(args[arg]);
if (kw) {
arg++;
+ rule->from = ACT_F_TCP_RES_CNT;
if (!kw->parse((const char **)args, &arg, curpx, rule, err))
return -1;
} else {
@@ -1683,10 +1684,13 @@
}
else {
struct tcp_action_kw *kw;
- if (where & SMP_VAL_FE_CON_ACC)
+ if (where & SMP_VAL_FE_CON_ACC) {
kw = tcp_req_conn_action(args[arg]);
- else
+ rule->from = ACT_F_TCP_REQ_CON;
+ } else {
kw = tcp_req_cont_action(args[arg]);
+ rule->from = ACT_F_TCP_REQ_CNT;
+ }
if (kw) {
arg++;
if (!kw->parse((const char **)args, &arg, curpx, rule, err))