Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport "Remove wait for tunnel up" to prepare-android/2025.1 #7617

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Feb 7, 2025

This PR backports #7458 to the 2025.1 android release branch.


This change is Reviewable

@MarkusPettersson98 MarkusPettersson98 changed the title Remove wait for tunnel up Backport "Remove wait for tunnel up" to prepare-android/2025.1 Feb 7, 2025
@Rawa Rawa force-pushed the remove-wait-for-tunnel-up branch from 7ca27fd to c10bffe Compare February 7, 2025 10:28
@MarkusPettersson98 MarkusPettersson98 force-pushed the remove-wait-for-tunnel-up branch from c10bffe to 2192872 Compare February 7, 2025 10:34
Rawa and others added 2 commits February 7, 2025 11:45
After invoking VpnService.establish() we will get a tunnel file
descriptor that corresponds to the interface that was created. However,
this has no guarantee of the routing table beeing up to date, and we
might thus send traffic outside the tunnel. Previously this was done
through looking at the tunFd to see that traffic is sent to verify that
the routing table has changed. If no traffic is seen some traffic is
induced to a random IP address to ensure traffic can be seen. This new
implementation is slower but won't risk sending UDP traffic to a random
public address at the internet.
@MarkusPettersson98 MarkusPettersson98 force-pushed the remove-wait-for-tunnel-up branch from 2192872 to 00b08c8 Compare February 7, 2025 10:45
@Rawa Rawa merged commit c720fba into prepare-android/2025.1 Feb 7, 2025
50 of 59 checks passed
@Rawa Rawa deleted the remove-wait-for-tunnel-up branch February 7, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants