]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tcpcheck_rule structure update
authorBaptiste Assmann <bedis9@gmail.com>
Sat, 25 Apr 2015 14:16:48 +0000 (16:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2015 08:44:49 +0000 (10:44 +0200)
A new field is added into the tcpcheck_rule structure.
This field will host a string used as a comment to describe the rule.
Then this comment can be used in logs to report a more user friendly
message on the step which failed during the tcpcheck ruleset.

include/types/checks.h

index 3abebe106ca44f99c51f226484ef13a5fdab9ac8..252928f3a1830d69496857021459e0163dbccf0f 100644 (file)
@@ -214,6 +214,7 @@ enum {
 struct tcpcheck_rule {
        struct list list;                       /* list linked to from the proxy */
        int action;                             /* action: send or expect */
+       char *comment;                          /* comment to be used in the logs and on the stats socket */
        /* match type uses NON-NULL pointer from either string or expect_regex below */
        /* sent string is string */
        char *string;                           /* sent or expected string */