diff options
Diffstat (limited to 'src/vnet/tcp')
-rw-r--r-- | src/vnet/tcp/tcp_syn_filter4.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/vnet/tcp/tcp_syn_filter4.c b/src/vnet/tcp/tcp_syn_filter4.c index d151eb77c3c..b107899cfb9 100644 --- a/src/vnet/tcp/tcp_syn_filter4.c +++ b/src/vnet/tcp/tcp_syn_filter4.c @@ -450,19 +450,19 @@ syn_filter_enable_disable (u32 sw_if_index, int enable_disable) { syn_filter4_runtime_t *rt; - /* *INDENT-OFF* */ - foreach_vlib_main ({ - rt = vlib_node_get_runtime_data (this_vlib_main, syn_filter4_node.index); - vec_validate (rt->syn_counts, 1023); - /* - * Given perfect disperson / optimal hashing results: - * Allow 128k (successful) syns/sec. 1024, buckets each of which - * absorb 128 syns before filtering. Reset table once a second. - * Reality bites, lets try resetting once every 100ms. - */ - rt->reset_interval = 0.1; /* reset interval in seconds */ - }); - /* *INDENT-ON* */ + foreach_vlib_main () + { + rt = vlib_node_get_runtime_data (this_vlib_main, + syn_filter4_node.index); + vec_validate (rt->syn_counts, 1023); + /* + * Given perfect disperson / optimal hashing results: + * Allow 128k (successful) syns/sec. 1024, buckets each of which + * absorb 128 syns before filtering. Reset table once a second. + * Reality bites, lets try resetting once every 100ms. + */ + rt->reset_interval = 0.1; /* reset interval in seconds */ + } } rv = vnet_feature_enable_disable ("ip4-local", "syn-filter-4", |