diff options
Diffstat (limited to 'src/com/android/networkstack/util/NetworkStackUtils.java')
-rwxr-xr-x | src/com/android/networkstack/util/NetworkStackUtils.java | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/src/com/android/networkstack/util/NetworkStackUtils.java b/src/com/android/networkstack/util/NetworkStackUtils.java index 829d0c6a..c2de03cd 100755 --- a/src/com/android/networkstack/util/NetworkStackUtils.java +++ b/src/com/android/networkstack/util/NetworkStackUtils.java @@ -151,11 +151,6 @@ public class NetworkStackUtils { new String [] {"https://www.google.com/generate_204"}; /** - * 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"; @@ -212,6 +207,13 @@ public class NetworkStackUtils { "ipclient_accept_ipv6_link_local_dns_version"; /** + * Experiment flag to enable "mcast_resolicit" neighbor parameter in IpReachabilityMonitor, + * set it to 3 by default. + */ + public static final String IP_REACHABILITY_MCAST_RESOLICIT_VERSION = + "ip_reachability_mcast_resolicit_version"; + + /** * Experiment flag to attempt to ignore the on-link IPv6 DNS server which fails to respond to * address resolution. */ @@ -226,6 +228,18 @@ public class NetworkStackUtils { "ip_reachability_ignore_incompleted_ipv6_default_router_version"; /** + * Experiment flag to treat router MAC address changes as a failure only on roam. + */ + public static final String IP_REACHABILITY_ROUTER_MAC_CHANGE_FAILURE_ONLY_AFTER_ROAM_VERSION = + "ip_reachability_router_mac_change_failure_only_after_roam_version"; + + /** + * Experiment flag to ignore all NUD failures from kernel organic. + */ + public static final String IP_REACHABILITY_IGNORE_ORGANIC_NUD_FAILURE_VERSION = + "ip_reachability_ignore_organic_nud_failure_version"; + + /** * Experiment flag to enable DHCPv6 Prefix Delegation(RFC8415) in IpClient. */ public static final String IPCLIENT_DHCPV6_PREFIX_DELEGATION_VERSION = @@ -235,10 +249,12 @@ public class NetworkStackUtils { * Experiment flag to enable new ra filter. */ public static final String APF_NEW_RA_FILTER_VERSION = "apf_new_ra_filter_version"; + /** * Experiment flag to enable the feature of polling counters in Apf. */ public static final String APF_POLLING_COUNTERS_VERSION = "apf_polling_counters_version"; + /** * Experiment flag to enable the feature of ignoring any individual RA section with lifetime * below accept_ra_min_lft sysctl. @@ -246,6 +262,12 @@ public class NetworkStackUtils { public static final String IPCLIENT_IGNORE_LOW_RA_LIFETIME_VERSION = "ipclient_ignore_low_ra_lifetime_version"; + /** + * Feature flag to send private DNS resolution queries and probes on a background thread. + */ + public static final String NETWORKMONITOR_ASYNC_PRIVDNS_RESOLUTION = + "networkmonitor_async_privdns_resolution"; + /**** BEGIN Feature Kill Switch Flags ****/ /** @@ -350,9 +372,10 @@ public class NetworkStackUtils { * Generate an IPv6 address based on the given prefix(/64) and stable interface * identifier(EUI64). */ + @Nullable public static Inet6Address createInet6AddressFromEui64(@NonNull final IpPrefix prefix, @NonNull final byte[] eui64) { - if (prefix.getPrefixLength() != 64) { + if (prefix.getPrefixLength() > 64) { Log.e(TAG, "Invalid IPv6 prefix length " + prefix.getPrefixLength()); return null; } |