diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-12-29 20:02:55 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2010-02-11 12:06:37 +0100 |
commit | 56817d1c0cc30bcd65c56c2f73634b256603cc4d (patch) | |
tree | 4c37a3d1416f0d17658f37502fc5a9b15f68c65e /src/read_config_yy.y | |
parent | 73da80df0c3cf4175662b3da4dfbd3574d34f96a (diff) | |
download | conntrack-tools-56817d1c0cc30bcd65c56c2f73634b256603cc4d.tar.gz conntrack-tools-56817d1c0cc30bcd65c56c2f73634b256603cc4d.zip |
conntrackd: add support for TCP window scale factor synchronization
This patch adds a new option TCPWindowTracking that allows not
to disable TCP window tracking as it occurs by default.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_yy.y')
-rw-r--r-- | src/read_config_yy.y | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y index 5f4e6be..bc76e92 100644 --- a/src/read_config_yy.y +++ b/src/read_config_yy.y @@ -73,6 +73,7 @@ static void __max_dedicated_links_reached(void); %token T_NETLINK_OVERRUN_RESYNC T_NICE T_IPV4_DEST_ADDR T_IPV6_DEST_ADDR %token T_SCHEDULER T_TYPE T_PRIO T_NETLINK_EVENTS_RELIABLE %token T_DISABLE_INTERNAL_CACHE T_DISABLE_EXTERNAL_CACHE T_ERROR_QUEUE_LENGTH +%token T_OPTIONS T_TCP_WINDOW_TRACKING %token <string> T_IP T_PATH_VAL %token <val> T_NUMBER @@ -808,8 +809,25 @@ sync_line: refreshtime | state_replication | cache_writethrough | destroy_timeout + | option_line ; +option_line: T_OPTIONS '{' options '}'; + +options: + | options option + ; + +option: T_TCP_WINDOW_TRACKING T_ON +{ + CONFIG(sync).tcp_window_tracking = 1; +}; + +option: T_TCP_WINDOW_TRACKING T_OFF +{ + CONFIG(sync).tcp_window_tracking = 0; +}; + sync_mode_alarm: T_SYNC_MODE T_ALARM '{' sync_mode_alarm_list '}' { conf.flags |= CTD_SYNC_ALARM; |