connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Improve OpenVPN configuration value processing
@ 2021-11-16 15:14 Jussi Laakkonen
  2021-11-16 15:14 ` [PATCH v1 1/2] vpn-provider: Support checking if provider setting key exists Jussi Laakkonen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jussi Laakkonen @ 2021-11-16 15:14 UTC (permalink / raw)
  To: connman

Rework how OpenVPN processes the configuration values by introducing a
more clear way to classify different types of options. This makes it possible
to add options that may have a value or can be used without a value thus,
resorting to default value set for the option. Also the --auth-user-pass
and alike options having a special value are handled in cleaner way.

Motivation for this was that the --comp-lzo option was not processed
correctly with its value, and even though being listed as deprecated some
OpenVPN providers use the value. Omitting this option even though it was
required caused issues with both UDP and TCP VPNs:
  write to TUN/TAP : Invalid argument (code=22)
after which OpenVPN silently restarts itself.

Jussi Laakkonen (2):
  vpn-provider: Support checking if provider setting key exists.
  openvpn: Improve configuration value processing

 vpn/plugins/openvpn.c | 119 ++++++++++++++++++++++++++----------------
 vpn/vpn-provider.c    |   6 +++
 vpn/vpn-provider.h    |   2 +
 3 files changed, 83 insertions(+), 44 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-19  8:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-16 15:14 [PATCH v1 0/2] Improve OpenVPN configuration value processing Jussi Laakkonen
2021-11-16 15:14 ` [PATCH v1 1/2] vpn-provider: Support checking if provider setting key exists Jussi Laakkonen
2021-11-16 15:14 ` [PATCH v1 2/2] openvpn: Improve configuration value processing Jussi Laakkonen
2021-11-18 21:02 ` [PATCH v1 0/2] Improve OpenVPN " Daniel Wagner
2021-11-19  8:09   ` Jussi Laakkonen
2021-11-19  8:30     ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).