Skip to content

struct argv overhaul - Feb 2020 edition

David Sommerseth openvpn-devel 1 version In review

Get series with b4
b4 am [email protected]...

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4re-implement argv_printf_*()src/openvpn/argv.c src/openvpn/argv.h src/openvpn/route.c +2 more+206 -1771 reply
2/4argv: do fewer memory re-allocationssrc/openvpn/argv.c src/openvpn/argv.h src/openvpn/console_systemd.c +12 more+124 -1161 reply
3/4Add gc_arena to struct argv to save allocationssrc/openvpn/argv.c src/openvpn/argv.h tests/unit_tests/openvpn/test_argv.c+45 -291 reply
4/4Documented all the argv related code with minor refactoringsrc/openvpn/argv.c+211 -401 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchArne Schwabe
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/4] struct argv overhaul - Feb 2020 edition

Hi,

I've yet again rebased the last attempt of the struct argv overhaul patches [1] to the latest public git master [2].

This rebase just needed a few minor changes to account for changes with tls-crypt-v2 and sitnl patches now being included. I've also applied Arne's review comments [3].

To simplify the review, I've also pushed these changes to my gitlab account:

https://gitlab.com/dazo/openvpn.git

Look at the dev/struct-argv-overhaul-2020.02 [4] branch for the proper commits.

This patch-set supersedes the "struct argv overhaul - Oct 2019 edition" patches [5]

[1] <https://patchwork.openvpn.net/project/openvpn2/list/?series=386&state=%2A&archive=both>
[2] git master commit 5822e52c6b0f86f9e4de946f9fb1374c6fad95f1
[3] Message-ID: <[email protected]...>
<https://www.mail-archive.com/[email protected]/msg17957.html>
[4] <https://gitlab.com/dazo/openvpn/-/tree/dev/struct-argv-overhaul-2020.02>
[5] <https://patchwork.openvpn.net/project/openvpn2/list/?series=553&state=%2A&archive=both>

--
kind regards,

David Sommerseth
OpenVPN Inc

---------------------------------------------------------------------------

David Sommerseth (1):
Documented all the argv related code with minor refactoring

Heiko Hund (3):
re-implement argv_printf_*()
argv: do fewer memory re-allocations
Add gc_arena to struct argv to save allocations

 src/openvpn/argv.c                   | 541 +++++++++++++++++----------
 src/openvpn/argv.h                   |   7 +-
 src/openvpn/console_systemd.c        |   2 +-
 src/openvpn/init.c                   |  15 +-
 src/openvpn/lladdr.c                 |   2 +-
 src/openvpn/multi.c                  |  10 +-
 src/openvpn/networking_iproute2.c    |  23 +-
 src/openvpn/options.c                |   2 +-
 src/openvpn/plugin.c                 |   2 +-
 src/openvpn/route.c                  |  16 +-
 src/openvpn/socket.c                 |   4 +-
 src/openvpn/ssl_verify.c             |   6 +-
 src/openvpn/tls_crypt.c              |   2 +-
 src/openvpn/tun.c                    |  62 +--
 tests/unit_tests/openvpn/test_argv.c | 118 +++++-
 15 files changed, 518 insertions(+), 294 deletions(-)
Signature · 1 line
2.17.1