diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2006-06-11 04:22:11 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2006-06-11 04:22:11 +0000 |
commit | 838911cc424dcc0c03db1e9b256965976068c1a1 (patch) | |
tree | 91f58a1f1f5bb6ad18a44dfbdef711de5d63d7a4 /options.c | |
parent | A few more updates: (diff) | |
download | openvpn-838911cc424dcc0c03db1e9b256965976068c1a1.tar.xz |
Added optional minimum-number-of-bytes
parameter to --inactive directive.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1036 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -190,7 +190,8 @@ static const char usage_message[] = "--keepalive n m : Helper option for setting timeouts in server mode. Send\n" " ping once every n seconds, restart if ping not received\n" " for m seconds.\n" - "--inactive n : Exit after n seconds of inactivity on tun/tap device.\n" + "--inactive n [bytes] : Exit after n seconds of activity on tun/tap device\n" + " produces a combined in/out byte count < bytes.\n" "--ping-exit n : Exit if n seconds pass without reception of remote ping.\n" "--ping-restart n: Restart if n seconds pass without reception of remote ping.\n" "--ping-timer-rem: Run the --ping-exit/--ping-restart timer only if we have a\n" @@ -3720,6 +3721,8 @@ add_option (struct options *options, { VERIFY_PERMISSION (OPT_P_TIMER); options->inactivity_timeout = positive_atoi (p[1]); + if (p[2]) + options->inactivity_minimum_bytes = positive_atoi (p[2]); } else if (streq (p[0], "proto") && p[1]) { |