]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Allow skipping multple remotes via management interface
authorSelva Nair <selva.nair@gmail.com>
Tue, 7 Sep 2021 22:36:14 +0000 (18:36 -0400)
committerGert Doering <gert@greenie.muc.de>
Tue, 27 Dec 2022 09:42:55 +0000 (10:42 +0100)
commitec5ffe35a394c44b1ea25b7c10dab7da7d792ef2
tree4d9fdc2ca1d6baaef2792597ed2d0c5716ef1d29
parentcaf1b9030f28a984a0e12dd87b128b428d3683f0
Allow skipping multple remotes via management interface

The mamangement command "remote SKIP" is extended with an
optional parameter 'count' > 0. If count is greater than
number of connection entries (len), count % len is used.
On going past the index of the last connection entry,
counting is restarted from the first connection entry.

Without this, use of management-query-remote from a UI is
virtually impractical except when there are only a handful
of remote entries. Skipping the entries one by one takes
a long time when there are many entries to be skipped
(~ 1 second per entry).  Use of "remote MOD" is not an
option as change of protocol is not supported.

Management clients can determine the availability of this
feature by checking that the management interface version
is > 3. Older versions will ignore the count parameter and
behave identically to using count = 1.

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20210907223614.8574-1-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg22817.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
doc/management-notes.txt
src/openvpn/init.c
src/openvpn/options.h