mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
MINOR: checks: Export the tcpcheck_eval_ret enum
This enum will be used to define custom function for tcp-check expect rules.
This commit is contained in:
parent
7a1e2e1823
commit
6f87adcf20
@ -246,6 +246,12 @@ struct tcpcheck_send {
|
||||
};
|
||||
};
|
||||
|
||||
enum tcpcheck_eval_ret {
|
||||
TCPCHK_EVAL_WAIT = 0,
|
||||
TCPCHK_EVAL_STOP,
|
||||
TCPCHK_EVAL_CONTINUE,
|
||||
};
|
||||
|
||||
enum tcpcheck_expect_type {
|
||||
TCPCHK_EXPECT_UNDEF = 0, /* Match is not used. */
|
||||
TCPCHK_EXPECT_STRING, /* Matches a string. */
|
||||
|
@ -2763,12 +2763,6 @@ static int tcpcheck_get_step_id(struct check *check, struct tcpcheck_rule *rule)
|
||||
return rule->index + 1;
|
||||
}
|
||||
|
||||
enum tcpcheck_eval_ret {
|
||||
TCPCHK_EVAL_WAIT = 0,
|
||||
TCPCHK_EVAL_STOP,
|
||||
TCPCHK_EVAL_CONTINUE,
|
||||
};
|
||||
|
||||
/* Evaluate a TCPCHK_ACT_CONNECT rule. It returns 1 to evaluate the next rule, 0
|
||||
* to wait and -1 to stop the check. */
|
||||
static enum tcpcheck_eval_ret tcpcheck_eval_connect(struct check *check, struct tcpcheck_rule *rule)
|
||||
|
Loading…
x
Reference in New Issue
Block a user