diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-06-09 09:49:57 +0000 |
---|---|---|
committer | Xiao Ma <xiaom@google.com> | 2020-06-09 13:28:16 +0000 |
commit | bf9fefc6c32cd823f502134db0a7aae64f1fa095 (patch) | |
tree | de5c905a2f9545a809577c08044b600673b09fb0 /src/android/net/dhcp/DhcpClient.java | |
parent | 976a9509ab562330f03f419a13a5bc0ba0913398 (diff) |
Disable IPv6 stack when IPv6 provisioning is lost but IPv4 is still alive.
When IPv6 provisioning loss happens due to the default route has
gone, however, if IPv4 network is still provisioned, we can consider
to disable IPv6 stack and still keep the current connection without
disconnecting from wifi, applications will be able to reconnect over
IPv4 network.
Bug: 131781810
Test: atest NetworkStackTests NetworkStackNextTests
Test: atest NetworkStackIntegrationTests
Merged-In: I8f56a05b38c8387c91306c0dc2bdf4430ec3bd00
Change-Id: I8f56a05b38c8387c91306c0dc2bdf4430ec3bd00
Diffstat (limited to 'src/android/net/dhcp/DhcpClient.java')
-rw-r--r-- | src/android/net/dhcp/DhcpClient.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/android/net/dhcp/DhcpClient.java b/src/android/net/dhcp/DhcpClient.java index 5564503..4404273 100644 --- a/src/android/net/dhcp/DhcpClient.java +++ b/src/android/net/dhcp/DhcpClient.java @@ -503,9 +503,9 @@ public class DhcpClient extends StateMachine { * check whether or not to support caching the last lease info and INIT-REBOOT state. * * INIT-REBOOT state is supported on Android R by default if there is no experiment flag set to - * disable this feature explicitly, meanwhile we still hope to be able to control this feature - * on/off by pushing experiment flag for A/B testing and metrics collection on both of Android - * Q and R version, however it's disbled on Android Q by default. + * disable this feature explicitly, meanwhile turning this feature on/off by pushing experiment + * flag makes it possible to do A/B test and metrics collection on both of Android Q and R, but + * it's disabled on Android Q by default. */ public boolean isDhcpLeaseCacheEnabled() { final boolean defaultEnabled = |