summaryrefslogtreecommitdiffstats
path: root/multi.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 /multi.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 'multi.h')
-rw-r--r--multi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/multi.h b/multi.h
index 58e65a3..2bc0c8a 100644
--- a/multi.h
+++ b/multi.h
@@ -161,6 +161,11 @@ struct multi_context {
struct context top; /**< Storage structure for process-wide
* configuration. */
+
+ /*
+ * Timer object for stale route check
+ */
+ struct event_timeout stale_routes_check_et;
};
/*