Change in openvpn[master]: Always use a 0.0.0.0/0 default on Android instead of def1
A message that is not in the archive (sent off-list or not yet received): gerrit.1739361204000.I22e4b73e744c765a43bdb29f6e18813d103ea757@...2715...
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=email
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.
---
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
src/openvpn/route.c +12 -0
@@ -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 =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=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I22e4b73e744c765a43bdb29f6e18813d103ea757
Gerrit-Change-Number: 890
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/890?usp=email )
Change subject: Always use a 0.0.0.0/0 default on Android instead of def1
......................................................................
Patch Set 1: Code-Review-1
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/890?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I22e4b73e744c765a43bdb29f6e18813d103ea757
Gerrit-Change-Number: 890
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Sat, 15 Feb 2025 15:37:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
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=email
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.
---
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
src/openvpn/options.c +3 -0
@@ -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 flag */ options->routes->flags |=RG_DEF1 ; +#endif }else if (streq (p[j],"bypass-dhcp" )) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/890?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I22e4b73e744c765a43bdb29f6e18813d103ea757
Gerrit-Change-Number: 890
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newpatchset