summaryrefslogtreecommitdiffstats
path: root/options.h
diff options
context:
space:
mode:
authorDavide Guerri <d.guerri@caspur.it>2011-09-15 23:42:22 +0200
committerDavid Sommerseth <davids@redhat.com>2011-09-30 09:48:42 +0200
commit3a957aaef3ae512b217dd475a846a0ea35aae49c (patch)
treed92bc58e2bf1d07612ff7dbb67afedc019ec8719 /options.h
parent8ca19c014c149cf69257798afa6c75d1ff8f11a7 (diff)
downloadopenvpn-3a957aaef3ae512b217dd475a846a0ea35aae49c.tar.gz
openvpn-3a957aaef3ae512b217dd475a846a0ea35aae49c.tar.xz
openvpn-3a957aaef3ae512b217dd475a846a0ea35aae49c.zip
New feauture: Add --stale-routes-check
This patch adds a stale-routes-check option that takes 2 parameters: a ageing time (in seconds) and a check interval (in seconds). The latter defaults to the former if it's not present. Internally, a new "check" is added in multi_process_per_second_timers_dowork(). This check deletes stale routes and it is inspired to the function multi_reap_range(). We're running a very large connectivity infrastructure based on openVPN (more than 4000 different clients connected per day per server), so we can throughly check this patch (or, of course, any variant of it). Signed-off-by: Davide Guerri <d.guerri@caspur.it> Reviewed-by: David Sommerseth <davids@redhat.com> Acked-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'options.h')
-rw-r--r--options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.h b/options.h
index d792872..902fef4 100644
--- a/options.h
+++ b/options.h
@@ -460,6 +460,8 @@ struct options
int cf_per;
int max_clients;
int max_routes_per_client;
+ int stale_routes_check_interval;
+ int stale_routes_ageing_time;
const char *auth_user_pass_verify_script;
bool auth_user_pass_verify_script_via_file;