]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: action: define enum for timeout type of the set-timeout rule
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 10 Dec 2020 12:43:50 +0000 (13:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Dec 2020 11:01:07 +0000 (12:01 +0100)
This enum is used to specify the timeout targetted by a set-timeout
rule.

include/haproxy/action-t.h

index 36aa5bbdcecc394783aea91a45aebded34bf0db3..73a846f1ce14f960545d0c5c1a3be906de865c8b 100644 (file)
@@ -93,6 +93,12 @@ enum act_name {
        ACT_TCP_CLOSE, /* close at the sender's */
 };
 
+/* Timeout name valid for a set-timeout rule */
+enum act_timeout_name {
+       ACT_TIMEOUT_SERVER,
+       ACT_TIMEOUT_TUNNEL,
+};
+
 /* NOTE: if <.action_ptr> is defined, the referenced function will always be
  *       called regardless the action type. */
 struct act_rule {