From: "plaisthos (Code Review)" Date: Thu, 30 Nov 2023 16:24:38 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <0768d158f9982da5613e353a86618e05d8cf656c-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Detvh9z1i/I="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gateway List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --Detvh9z1i/I= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/463?usp=3Demail to review the following change. Change subject: Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gat= eway ...................................................................... Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gateway This debug code is not very useful as it is outdated and the same functionality is provided by --show-gateway Change-Id: Ie7fd59cc84e2eb024086c28c2ec2a5606a2b2e7c Signed-off-by: Arne Schwabe --- M src/openvpn/init.c 1 file changed, 0 insertions(+), 11 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/63/463/1 diff --git a/src/openvpn/init.c b/src/openvpn/init.c index abba748..fdab26b 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -885,17 +885,6 @@ return false; #endif -#ifdef TEST_GET_DEFAULT_GATEWAY - { - struct route_gateway_info rgi; - struct route_ipv6_gateway_info rgi6; - get_default_gateway(&rgi); - get_default_gateway_ipv6(&rgi6, NULL); - print_default_gateway(M_INFO, &rgi, &rgi6); - return false; - } -#endif - #ifdef GEN_PATH_TEST { struct gc_arena gc =3D gc_new(); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/463?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ie7fd59cc84e2eb024086c28c2ec2a5606a2b2e7c Gerrit-Change-Number: 463 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --Detvh9z1i/I= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Remove TEST_GET_DEFAULT_GATEWAY as it duplicates --show-gatew=
ay

This debug code is not very useful as it is outdated and the same=
functionality is provided by --show-gateway

Change-Id: Ie7fd59cc= 84e2eb024086c28c2ec2a5606a2b2e7c
Signed-off-by: Arne Schwabe <arne@...1186...= .1227...>
---
M src/openvpn/init.c
1 file changed, 0 insertions= (+), 11 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/open=
vpn refs/changes/63/463/1
diff --git a/src/openvpn/init.c b/src/ope=
nvpn/init.c
index abba748..fdab26b 100644
-= -- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
= @@ -885,17 +885,6 @@
return false;
#endif

-#ifdef TEST_GET_DEFAULT_GATEWAY
- {
= - struct route_gateway_info rgi;
- struct route_ipv6_gateway_info rgi6;
- get_default_gateway(&r= gi);
- get_defau= lt_gateway_ipv6(&rgi6, NULL);
- print_default_gateway(M_INFO, &rgi, &rgi6);

- return false;
- }
-#endif
-
#ifdef GEN_PATH_TEST
= {
struct gc_arena gc =3D gc_new();
<= span>

To view, visit change 463. To unsubscribe, or for help = writing mail filters, visit = settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie7fd59cc84e2eb024086c28c2ec= 2a5606a2b2e7c
Gerrit-Change-Number: 463
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--Detvh9z1i/I=--