summaryrefslogtreecommitdiffstats
path: root/src/read_config_yy.y
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-05-25 20:36:54 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-05-25 20:36:54 +0200
commitf152340a26912d090b5fd15be10208605929816b (patch)
treedab6a28719c6c815112fe1c3354a8b7942a90bfe /src/read_config_yy.y
parented49d60424a18635c31dafc77e2cb720f75cc4ff (diff)
add best effort replication protocol (aka NOTRACK)
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r--src/read_config_yy.y15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index 7fb3d5b..b9c53be 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -53,7 +53,7 @@ struct ct_conf conf;
%token T_ESTABLISHED T_SYN_SENT T_SYN_RECV T_FIN_WAIT
%token T_CLOSE_WAIT T_LAST_ACK T_TIME_WAIT T_CLOSE T_LISTEN
%token T_SYSLOG T_WRITE_THROUGH T_STAT_BUFFER_SIZE T_DESTROY_TIMEOUT
-%token T_MCAST_RCVBUFF T_MCAST_SNDBUFF
+%token T_MCAST_RCVBUFF T_MCAST_SNDBUFF T_NOTRACK
%token <string> T_IP T_PATH_VAL
%token <val> T_NUMBER
@@ -436,6 +436,7 @@ sync_line: refreshtime
| delay_destroy_msgs
| sync_mode_alarm
| sync_mode_ftfw
+ | sync_mode_notrack
| listen_to
| state_replication
| cache_writethrough
@@ -452,6 +453,11 @@ sync_mode_ftfw: T_SYNC_MODE T_FTFW '{' sync_mode_ftfw_list '}'
conf.flags |= CTD_SYNC_FTFW;
};
+sync_mode_notrack: T_SYNC_MODE T_NOTRACK '{' sync_mode_notrack_list '}'
+{
+ conf.flags |= CTD_SYNC_NOTRACK;
+};
+
sync_mode_alarm_list:
| sync_mode_alarm_list sync_mode_alarm_line;
@@ -470,6 +476,13 @@ sync_mode_ftfw_line: resend_queue_size
| window_size
;
+sync_mode_notrack_list:
+ | sync_mode_notrack_list sync_mode_notrack_line;
+
+sync_mode_notrack_line: timeout
+ ;
+
+
resend_queue_size: T_RESEND_BUFFER_SIZE T_NUMBER
{
conf.resend_queue_size = $2;