summaryrefslogtreecommitdiffstats
path: root/src/read_config_yy.y
diff options
context:
space:
mode:
authorArturo Borrero Gonzalez <arturo@debian.org>2017-05-09 09:41:15 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-05-15 12:39:11 +0200
commit3d9849649ec617b45a57a50c93244c13ea8244e0 (patch)
tree97e7bd7ff155d6b89798076482be13c0277e4a76 /src/read_config_yy.y
parentd31baccc493ec6484bfcb51d6bce78ff8c3ddc64 (diff)
conntrackd: request resync at startup
If a node goes to live, ask the other for resync at startup. This has to be done usually by hand, but I guess is an operation common enough to add some bits to ease people life here. Signed-off-by: Arturo Borrero Gonzalez <arturo@debian.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r--src/read_config_yy.y14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index 2c08d4e..3bb7c5f 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -81,7 +81,7 @@ enum {
%token T_OPTIONS T_TCP_WINDOW_TRACKING T_EXPECT_SYNC
%token T_HELPER T_HELPER_QUEUE_NUM T_HELPER_QUEUE_LEN T_HELPER_POLICY
%token T_HELPER_EXPECT_TIMEOUT T_HELPER_EXPECT_MAX
-%token T_SYSTEMD
+%token T_SYSTEMD T_STARTUP_RESYNC
%token <string> T_IP T_PATH_VAL
%token <val> T_NUMBER
@@ -768,6 +768,7 @@ sync_mode_ftfw_line: resend_queue_size
| purge
| window_size
| disable_external_cache
+ | startup_resync
;
sync_mode_notrack_list:
@@ -777,6 +778,7 @@ sync_mode_notrack_line: timeout
| purge
| disable_internal_cache
| disable_external_cache
+ | startup_resync
;
disable_internal_cache: T_DISABLE_INTERNAL_CACHE T_ON
@@ -804,6 +806,16 @@ resend_queue_size: T_RESEND_QUEUE_SIZE T_NUMBER
conf.resend_queue_size = $2;
};
+startup_resync: T_STARTUP_RESYNC T_ON
+{
+ conf.startup_resync = 1;
+};
+
+startup_resync: T_STARTUP_RESYNC T_OFF
+{
+ conf.startup_resync = 0;
+};
+
window_size: T_WINDOWSIZE T_NUMBER
{
conf.window_size = $2;