diff options
author | James Yonan <james@openvpn.net> | 2011-10-18 08:12:51 +0000 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2011-12-14 17:03:24 +0100 |
commit | ffea644ce62a67ea06e375c17277cea4e9cb9873 (patch) | |
tree | f9d897b7b3b6d54474d846de9a54ffc1b1c7cc60 /options.c | |
parent | 359adbf136e07011ad6733c3ba679b2d5cc47fdc (diff) | |
download | openvpn-ffea644ce62a67ea06e375c17277cea4e9cb9873.tar.gz openvpn-ffea644ce62a67ea06e375c17277cea4e9cb9873.tar.xz openvpn-ffea644ce62a67ea06e375c17277cea4e9cb9873.zip |
Added "memstats" option to maintain real-time operating stats
in a memory-mapped file.
Version 2.1.16
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7653 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -299,6 +299,9 @@ static const char usage_message[] = " can be matched in policy routing and packetfilter rules.\n" #endif "--txqueuelen n : Set the tun/tap TX queue length to n (Linux only).\n" +#ifdef ENABLE_MEMSTATS + "--memstats file : Write live usage stats to memory mapped binary file.\n" +#endif "--mlock : Disable Paging -- ensures key material and tunnel\n" " data will never be written to disk.\n" "--up cmd : Shell cmd to execute after successful tun device open.\n" @@ -4602,6 +4605,13 @@ add_option (struct options *options, options->log = true; redirect_stdout_stderr (p[1], true); } +#ifdef ENABLE_MEMSTATS + else if (streq (p[0], "memstats") && p[1]) + { + VERIFY_PERMISSION (OPT_P_GENERAL); + options->memstats_fn = p[1]; + } +#endif else if (streq (p[0], "mlock")) { VERIFY_PERMISSION (OPT_P_GENERAL); |