Skip to content

struct argv overhaul - round 2+x

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+192 -1682 replies
2/4argv: do fewer memory re-allocationssrc/openvpn/argv.c src/openvpn/argv.h src/openvpn/console_systemd.c +10 more+110 -1031 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+43 -251 reply
4/4Documented all the argv related code with minor refactoringsrc/openvpn/argv.c+209 -370 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Openvpn-devel] [PATCH 0/4] struct argv overhaul - round 2+x

Hi,

Since the hackathon a couple of weeks ago, I've picked up the work from Heiko Hund which does a big overhaul on the struct argv patches [0].

This patchset is rebased on the latest master and with my review comments embedded into Heikos patch. This was only relevant for the big 're-implement argv_printf_*()' patch.

In addition, I've added a separate documentation patch which adds doxygen comments to basically all functions in argv.c, trying to explain better what each of these functions does. To make the comment flow better, I renamed a few variables and did minor refactoring changes on the coding style.

--
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                   | 525 +++++++++++++++++----------
 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/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/tun.c                    |  62 ++--
 tests/unit_tests/openvpn/test_argv.c | 118 +++++-
 13 files changed, 496 insertions(+), 275 deletions(-)
Signature · 1 line
2.17.1