diff options
author | Xiao Ma <xiaom@google.com> | 2019-07-02 18:55:11 +0900 |
---|---|---|
committer | Xiao Ma <xiaom@google.com> | 2019-12-09 10:47:32 +0900 |
commit | 7d73395d0be2d0327b70521928548f20641878d0 (patch) | |
tree | 6c73d878d8d0d998d6f1e94c2dc6a053461aee02 /src/android/net/util/NetworkStackUtils.java | |
parent | 4a8d1d42b52223cb81ecacb60cc578aeb4452fd5 (diff) |
Implement IPv4 address conflict detection and DHCPDECLINE.
Disable this behavior by default, we can enable it with flag rollout
later.
Bug: 128639898
Test: atest NetworkStackTests NetworkStackIntegrationTests
Test: manual test
Change-Id: Ie2133bc5faaba085147519cdb5c8277c563cfbd7
Diffstat (limited to 'src/android/net/util/NetworkStackUtils.java')
-rw-r--r-- | src/android/net/util/NetworkStackUtils.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/android/net/util/NetworkStackUtils.java b/src/android/net/util/NetworkStackUtils.java index b2deefd..993f3cb 100644 --- a/src/android/net/util/NetworkStackUtils.java +++ b/src/android/net/util/NetworkStackUtils.java @@ -121,6 +121,21 @@ public class NetworkStackUtils { */ public static final String DHCP_RAPID_COMMIT_ENABLED = "dhcp_rapid_commit_enabled"; + /** + * Minimum module version at which to enable the DHCP INIT-REBOOT state. + */ + public static final String DHCP_INIT_REBOOT_VERSION = "dhcp_init_reboot_version"; + + /** + * Minimum module version at which to enable the DHCP Rapid Commit option. + */ + public static final String DHCP_RAPID_COMMIT_VERSION = "dhcp_rapid_commit_version"; + + /** + * Minimum module version at which to enable the IP address conflict detection feature. + */ + public static final String DHCP_IP_CONFLICT_DETECT_VERSION = "dhcp_ip_conflict_detect_version"; + static { System.loadLibrary("networkstackutilsjni"); } |