diff options
author | Maria Matejka <mq@ucw.cz> | 2022-09-09 15:04:36 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-09-09 18:53:15 +0200 |
commit | 974f16b1f70ae8b7fa4efa6a217988e1811069e7 (patch) | |
tree | 4a0f0851c92f8c4e6ef1fb5496b85391062ef981 /conf | |
parent | 31e881bcbd59cf55c8614a7a7324d4a7ed8f3ed8 (diff) |
Created a dedicated settle timer structure
Diffstat (limited to 'conf')
-rw-r--r-- | conf/confbase.Y | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y index 241c332d..8e5da9e3 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -14,6 +14,7 @@ CF_HDR #include "conf/conf.h" #include "lib/resource.h" #include "lib/socket.h" +#include "lib/settle.h" #include "lib/timer.h" #include "lib/string.h" #include "nest/protocol.h" @@ -93,6 +94,7 @@ CF_DECLS struct proto_spec ps; struct channel_limit cl; struct timeformat *tf; + struct settle_config settle; struct adata *ad; struct bytestring *bs; } @@ -111,6 +113,7 @@ CF_DECLS %type <i> expr bool pxlen4 %type <time> expr_us time +%type <settle> settle %type <a> ipa %type <net> net_ip4_ net_ip4 net_ip6_ net_ip6 net_ip_ net_ip net_or_ipa %type <net_ptr> net_ net_any net_vpn4_ net_vpn6_ net_vpn_ net_roa4_ net_roa6_ net_roa_ net_ip6_sadr_ net_mpls_ @@ -386,6 +389,13 @@ time: } ; +/* Settle timer configuration */ +settle: expr_us expr_us { + if ($1 > $2) cf_error("Minimum settle time %t is bigger than maximum settle time %t", $1, $2); + $$.min = $1; + $$.max = $2; +}; + text: TEXT | CF_SYM_KNOWN { |