From: "plaisthos (Code Review)" Date: Mon, 17 Mar 2025 15:14:01 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="fTVDZa0TLAc="; charset=UTF-8 Subject: [Openvpn-devel] [XS] 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 --fTVDZa0TLAc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, plaisthos. Hello cron2, flichtenheld, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/890?usp=3Demail to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review-1 by cron2 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/options.c 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/90/890/2 diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 31000e9..19cf455 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -7320,7 +7320,10 @@ } else if (streq(p[j], "def1")) { +#ifndef TARGET_ANDROID + /* Android always uses 0.0.0.0/0, so silently ignore the f= lag */ options->routes->flags |=3D RG_DEF1; +#endif } else if (streq(p[j], "bypass-dhcp")) { -- 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: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-MessageType: newpatchset --fTVDZa0TLAc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld, plaisthos. <= /p>

plaisthos uploaded patch set #2 to this change.

<= a href=3D"http://gerrit.openvpn.net/c/openvpn/+/890?usp=3Demail">View Chang= e

The following approvals got outdated and were removed: Code-Review-1 by cron2

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: I22e4b73e744c765a43bdb29f6e18813d103ea75= 7
Signed-off-by: Arne Schwabe <arne@...1227...>
---
M src/op= envpn/options.c
1 file changed, 3 insertions(+), 0 deletions(-)

<= /pre>
<=
span>diff --git a/src/openvpn/options.c b/src/openvpn/options.c
<= span>index 31000e9..19cf455 100644
--- a/src/openvpn/option= s.c
+++ b/src/openvpn/options.c
@@ -7320,7 = +7320,10 @@
}
els= e if (streq(p[j], "def1"))
{<= br>+#ifndef TARGET_ANDROID
+ /* Andro= id always uses 0.0.0.0/0, so silently ignore the flag */
= options->routes->flags |=3D RG_DEF1;
+#endif
}=
else if (streq(p[j], "bypass-dhcp")= )
{

To vie= w, 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: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newpatchset
--fTVDZa0TLAc=--