]> git.ipfire.org Git - thirdparty/openvpn.git/commit
New feauture: Add --stale-routes-check
authorDavide Guerri <d.guerri@caspur.it>
Thu, 15 Sep 2011 21:42:22 +0000 (23:42 +0200)
committerDavid Sommerseth <davids@redhat.com>
Fri, 30 Sep 2011 07:48:42 +0000 (09:48 +0200)
commit3a957aaef3ae512b217dd475a846a0ea35aae49c
treed92bc58e2bf1d07612ff7dbb67afedc019ec8719
parent8ca19c014c149cf69257798afa6c75d1ff8f11a7
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>
multi.c
multi.h
openvpn.8
options.c
options.h