Change in openvpn[master]: options: Factor out parsing code to separate options_parse.c
A message that is not in the archive (sent off-list or not yet received): gerrit.1759239739000.I18e38862df1318740928c6cfa21dc4dcd7d44b89@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email
to review the following change.
Change subject: options: Factor out parsing code to separate options_parse.c
......................................................................
options: Factor out parsing code to separate options_parse.c
For easier testability. And because everything that reduces the length of that file in a sensible manner is a good idea.
---
M CMakeLists.txt
M src/openvpn/Makefile.am
M src/openvpn/common.h
M src/openvpn/options.c
M src/openvpn/options.h
A src/openvpn/options_parse.c
6 files changed, 669 insertions(+), 622 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/42/1242/1
CMakeLists.txt +1 -0
@@ -513,6 +513,7 @@ src/openvpn/options.h src/openvpn/options_util.c src/openvpn/options_util.h + src/openvpn/options_parse.c src/openvpn/otime.c src/openvpn/otime.h src/openvpn/ovpn_dco_win.h
src/openvpn/Makefile.am +1 -0
@@ -109,6 +109,7 @@ openvpn.c openvpn.h \ options.c options.h \ options_util.c options_util.h \ + options_parse.c \ otime.c otime.h \ packet_id.c packet_id.h \ perf.c perf.h \
src/openvpn/common.h +2 -0
@@ -23,6 +23,8 @@#ifndef COMMON_H #define COMMON_H +#include <stdint.h> +/* * Statistics counters and associated printf format. */
src/openvpn/options.c +4 -622
656 lines not on this page · raw message
src/openvpn/options.h +69 -0
83 lines not on this page · raw message
src/openvpn/options_parse.c new file +592 -0
592 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I18e38862df1318740928c6cfa21dc4dcd7d44b89
Gerrit-Change-Number: 1242
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email )
Change subject: options: Factor out parsing code to separate options_parse.c
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I18e38862df1318740928c6cfa21dc4dcd7d44b89
Gerrit-Change-Number: 1242
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Tue, 07 Oct 2025 18:50:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 options: Factor out parsing code to separate options_parse.c
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
For easier testability. And because everything that reduces the length of that file in a sensible manner is a good idea.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1242
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1242
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
CMakeLists.txt +1 -0
@@ -513,6 +513,7 @@ src/openvpn/options.h src/openvpn/options_util.c src/openvpn/options_util.h + src/openvpn/options_parse.c src/openvpn/otime.c src/openvpn/otime.h src/openvpn/ovpn_dco_win.h
src/openvpn/Makefile.am +1 -0
@@ -109,6 +109,7 @@ openvpn.c openvpn.h \ options.c options.h \ options_util.c options_util.h \ + options_parse.c \ otime.c otime.h \ packet_id.c packet_id.h \ perf.c perf.h \
src/openvpn/common.h +2 -0
@@ -23,6 +23,8 @@#ifndef COMMON_H #define COMMON_H +#include <stdint.h> +/* * Statistics counters and associated printf format. */
src/openvpn/options.c +4 -622
656 lines not on this page · raw message
src/openvpn/options.h +69 -0
83 lines not on this page · raw message
src/openvpn/options_parse.c new file +592 -0
592 lines not on this page · raw message
[Openvpn-devel] [PATCH applied] Re: options: Factor out parsing code to separate options_parse.c
"Because it makes sense" :-) - "git show --color-moved" also shows that this is really just moved code, and a few "static"s removed here and there. Tests pass.
Your patch has been applied to the master branch.
commit ebf781b8a15932ff7b7911ce41bdcedf70d0eb06
Author: Frank Lichtenheld Date: Tue Oct 7 20:51:04 2025 +0200
options: Factor out parsing code to separate options_parse.c
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1242
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59243506/
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: options: Factor out parsing code to separate options_parse.c
......................................................................
options: Factor out parsing code to separate options_parse.c
For easier testability. And because everything that reduces the length of that file in a sensible manner is a good idea.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1242
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59243506/
---
M CMakeLists.txt
M src/openvpn/Makefile.am
M src/openvpn/common.h
M src/openvpn/options.c
M src/openvpn/options.h
A src/openvpn/options_parse.c
6 files changed, 669 insertions(+), 622 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/42/1242/2
CMakeLists.txt +1 -0
@@ -513,6 +513,7 @@ src/openvpn/options.h src/openvpn/options_util.c src/openvpn/options_util.h + src/openvpn/options_parse.c src/openvpn/otime.c src/openvpn/otime.h src/openvpn/ovpn_dco_win.h
src/openvpn/Makefile.am +1 -0
@@ -109,6 +109,7 @@ openvpn.c openvpn.h \ options.c options.h \ options_util.c options_util.h \ + options_parse.c \ otime.c otime.h \ packet_id.c packet_id.h \ perf.c perf.h \
src/openvpn/common.h +2 -0
@@ -23,6 +23,8 @@#ifndef COMMON_H #define COMMON_H +#include <stdint.h> +/* * Statistics counters and associated printf format. */
src/openvpn/options.c +4 -622
656 lines not on this page · raw message
src/openvpn/options.h +69 -0
83 lines not on this page · raw message
src/openvpn/options_parse.c new file +592 -0
592 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I18e38862df1318740928c6cfa21dc4dcd7d44b89
Gerrit-Change-Number: 1242
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email )
Change subject: options: Factor out parsing code to separate options_parse.c
......................................................................
options: Factor out parsing code to separate options_parse.c
For easier testability. And because everything that reduces the length of that file in a sensible manner is a good idea.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1242
Message-Id: <[email protected]...>
URL: https://sourceforge.net/p/openvpn/mailman/message/59243506/
---
M CMakeLists.txt
M src/openvpn/Makefile.am
M src/openvpn/common.h
M src/openvpn/options.c
M src/openvpn/options.h
A src/openvpn/options_parse.c
6 files changed, 669 insertions(+), 622 deletions(-)
CMakeLists.txt +1 -0
@@ -513,6 +513,7 @@ src/openvpn/options.h src/openvpn/options_util.c src/openvpn/options_util.h + src/openvpn/options_parse.c src/openvpn/otime.c src/openvpn/otime.h src/openvpn/ovpn_dco_win.h
src/openvpn/Makefile.am +1 -0
@@ -109,6 +109,7 @@ openvpn.c openvpn.h \ options.c options.h \ options_util.c options_util.h \ + options_parse.c \ otime.c otime.h \ packet_id.c packet_id.h \ perf.c perf.h \
src/openvpn/common.h +2 -0
@@ -23,6 +23,8 @@#ifndef COMMON_H #define COMMON_H +#include <stdint.h> +/* * Statistics counters and associated printf format. */
src/openvpn/options.c +4 -622
656 lines not on this page · raw message
src/openvpn/options.h +69 -0
83 lines not on this page · raw message
src/openvpn/options_parse.c new file +592 -0
592 lines not on this page · raw message
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1242?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I18e38862df1318740928c6cfa21dc4dcd7d44b89
Gerrit-Change-Number: 1242
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>