From: "plaisthos (Code Review)" Date: Wed, 12 Feb 2025 11:53:32 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <7339e232f9d6a9dbd94473d7f647f51061a188b6-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="M2YB4PnhSQo="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Always use a 0.0.0.0/0 default on Android instead of def1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --M2YB4PnhSQo= 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/+/890?usp=3Demail to review the following change. Change subject: Always use a 0.0.0.0/0 default on Android instead of def1 ...................................................................... Always use a 0.0.0.0/0 default on Android instead of def1 Certain handset manufactures (like Samsung iirc) are handling 0.0.0.0/0 different from the split /1 routes, so push the 0.0.0.0/0 route to the OS. Change-Id: I22e4b73e744c765a43bdb29f6e18813d103ea757 Signed-off-by: Arne Schwabe --- M src/openvpn/route.c 1 file changed, 12 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/90/890/1 diff --git a/src/openvpn/route.c b/src/openvpn/route.c index d895e1c..71a0bbc9 100644 --- a/src/openvpn/route.c +++ b/src/openvpn/route.c @@ -1078,6 +1078,17 @@ if (rl->flags & RG_REROUTE_GW) { +#ifdef TARGET_ANDROID + add_route3(0, + 0, + rl->spec.remote_endpoint, + tt, + flags, + &rl->rgi, + es, + ctx); + +#else /* ifdef TARGET_ANDROID */ if (rl->flags & RG_DEF1) { /* add new default route (1st component) */ @@ -1102,6 +1113,7 @@ ret =3D add_route3(0, 0, rl->spec.remote_endpoint, tt, flags, &rl->rgi, es, ctx) && ret; } +#endif /* ifdef TARGET_ANDROID */ } /* set a flag so we can undo later */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/890?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: I22e4b73e744c765a43bdb29f6e18813d103ea757 Gerrit-Change-Number: 890 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --M2YB4PnhSQo= 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

Always use a 0.0.0.0/0 default on Android instead of def1
=
Certain handset manufactures (like Samsung iirc) are handling
0.0.0= .0/0 different from the split /1 routes, so push the 0.0.0.0/0
route to = the OS.

Change-Id: I22e4b73e744c765a43bdb29f6e18813d103ea757
Sign= ed-off-by: Arne Schwabe <arne@...1227...>
---
M src/openvpn/rou= te.c
1 file changed, 12 insertions(+), 0 deletions(-)

git pull=
 ssh://gerrit.openvpn.net:29418/openvpn refs/changes/90/890/1
diff =
--git a/src/openvpn/route.c b/src/openvpn/route.c
index d89= 5e1c..71a0bbc9 100644
--- a/src/openvpn/route.c
<= span>+++ b/src/openvpn/route.c
@@ -1078,6 +1078,17 @@

if (rl->flags & RG_REROUTE= _GW)
{
+#ifdef TARGET_ANDROID
+ add_route3(0,
+ 0,
+ rl->spe= c.remote_endpoint,
+ = tt,
+ flags,
+ &rl->rgi,<= br>+ = es,
+ = ctx);
+
+#else /* ifdef TARGET= _ANDROID */
if (rl->flags & RG_DEF1= )
{
/= * add new default route (1st component) */
@@ -1102,6 +1113= ,7 @@
ret =3D add_route3(0, 0, rl->= spec.remote_endpoint, tt,
= flags, &rl->rgi, es, ctx) && ret;
= }
+#endif= /* ifdef TARGET_ANDROID */
}
=
/* set a flag so we can undo later */=

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

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I22e4b73e744c765a43bdb29f6e1= 8813d103ea757
Gerrit-Change-Number: 890
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
--M2YB4PnhSQo=--