Import RFC7421_PREFIX_LENGTH from NetworkStackConstants.
Remove the dependency on services-connectivity-shared-srcs filegroup gradually. Bug: 290885904 Test: TH Change-Id: I6474563a3a0b521945e6467a2832862764ad4770
This commit is contained in:
@@ -28,11 +28,11 @@ import static android.net.TetheringManager.TETHER_ERROR_TETHER_IFACE_ERROR;
|
|||||||
import static android.net.TetheringManager.TETHER_ERROR_UNTETHER_IFACE_ERROR;
|
import static android.net.TetheringManager.TETHER_ERROR_UNTETHER_IFACE_ERROR;
|
||||||
import static android.net.TetheringManager.TetheringRequest.checkStaticAddressConfiguration;
|
import static android.net.TetheringManager.TetheringRequest.checkStaticAddressConfiguration;
|
||||||
import static android.net.dhcp.IDhcpServer.STATUS_SUCCESS;
|
import static android.net.dhcp.IDhcpServer.STATUS_SUCCESS;
|
||||||
import static android.net.util.NetworkConstants.RFC7421_PREFIX_LENGTH;
|
|
||||||
import static android.net.util.NetworkConstants.asByte;
|
import static android.net.util.NetworkConstants.asByte;
|
||||||
import static android.system.OsConstants.RT_SCOPE_UNIVERSE;
|
import static android.system.OsConstants.RT_SCOPE_UNIVERSE;
|
||||||
|
|
||||||
import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
|
import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
|
||||||
|
import static com.android.net.module.util.NetworkStackConstants.RFC7421_PREFIX_LENGTH;
|
||||||
import static com.android.networkstack.tethering.UpstreamNetworkState.isVcnInterface;
|
import static com.android.networkstack.tethering.UpstreamNetworkState.isVcnInterface;
|
||||||
import static com.android.networkstack.tethering.util.PrefixUtils.asIpPrefix;
|
import static com.android.networkstack.tethering.util.PrefixUtils.asIpPrefix;
|
||||||
import static com.android.networkstack.tethering.util.TetheringMessageBase.BASE_IPSERVER;
|
import static com.android.networkstack.tethering.util.TetheringMessageBase.BASE_IPSERVER;
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
package android.net.ip;
|
package android.net.ip;
|
||||||
|
|
||||||
import static android.net.util.NetworkConstants.RFC7421_PREFIX_LENGTH;
|
|
||||||
import static android.system.OsConstants.AF_INET6;
|
import static android.system.OsConstants.AF_INET6;
|
||||||
import static android.system.OsConstants.IPPROTO_ICMPV6;
|
import static android.system.OsConstants.IPPROTO_ICMPV6;
|
||||||
import static android.system.OsConstants.SOCK_RAW;
|
import static android.system.OsConstants.SOCK_RAW;
|
||||||
@@ -30,6 +29,7 @@ import static com.android.net.module.util.NetworkStackConstants.ICMPV6_ROUTER_SO
|
|||||||
import static com.android.net.module.util.NetworkStackConstants.IPV6_MIN_MTU;
|
import static com.android.net.module.util.NetworkStackConstants.IPV6_MIN_MTU;
|
||||||
import static com.android.net.module.util.NetworkStackConstants.PIO_FLAG_AUTONOMOUS;
|
import static com.android.net.module.util.NetworkStackConstants.PIO_FLAG_AUTONOMOUS;
|
||||||
import static com.android.net.module.util.NetworkStackConstants.PIO_FLAG_ON_LINK;
|
import static com.android.net.module.util.NetworkStackConstants.PIO_FLAG_ON_LINK;
|
||||||
|
import static com.android.net.module.util.NetworkStackConstants.RFC7421_PREFIX_LENGTH;
|
||||||
import static com.android.net.module.util.NetworkStackConstants.TAG_SYSTEM_NEIGHBOR;
|
import static com.android.net.module.util.NetworkStackConstants.TAG_SYSTEM_NEIGHBOR;
|
||||||
import static com.android.networkstack.tethering.util.TetheringUtils.getAllNodesForScopeId;
|
import static com.android.networkstack.tethering.util.TetheringUtils.getAllNodesForScopeId;
|
||||||
|
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ import static com.android.modules.utils.build.SdkLevel.isAtLeastS;
|
|||||||
import static com.android.modules.utils.build.SdkLevel.isAtLeastT;
|
import static com.android.modules.utils.build.SdkLevel.isAtLeastT;
|
||||||
import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
|
import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTH;
|
||||||
import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
|
import static com.android.net.module.util.Inet4AddressUtils.intToInet4AddressHTH;
|
||||||
|
import static com.android.net.module.util.NetworkStackConstants.RFC7421_PREFIX_LENGTH;
|
||||||
import static com.android.networkstack.tethering.OffloadHardwareInterface.OFFLOAD_HAL_VERSION_HIDL_1_0;
|
import static com.android.networkstack.tethering.OffloadHardwareInterface.OFFLOAD_HAL_VERSION_HIDL_1_0;
|
||||||
import static com.android.networkstack.tethering.OffloadHardwareInterface.OFFLOAD_HAL_VERSION_NONE;
|
import static com.android.networkstack.tethering.OffloadHardwareInterface.OFFLOAD_HAL_VERSION_NONE;
|
||||||
import static com.android.networkstack.tethering.TestConnectivityManager.BROADCAST_FIRST;
|
import static com.android.networkstack.tethering.TestConnectivityManager.BROADCAST_FIRST;
|
||||||
@@ -157,7 +158,6 @@ import android.net.dhcp.IDhcpServer;
|
|||||||
import android.net.ip.DadProxy;
|
import android.net.ip.DadProxy;
|
||||||
import android.net.ip.IpServer;
|
import android.net.ip.IpServer;
|
||||||
import android.net.ip.RouterAdvertisementDaemon;
|
import android.net.ip.RouterAdvertisementDaemon;
|
||||||
import android.net.util.NetworkConstants;
|
|
||||||
import android.net.wifi.SoftApConfiguration;
|
import android.net.wifi.SoftApConfiguration;
|
||||||
import android.net.wifi.WifiClient;
|
import android.net.wifi.WifiClient;
|
||||||
import android.net.wifi.WifiManager;
|
import android.net.wifi.WifiManager;
|
||||||
@@ -559,7 +559,7 @@ public class TetheringTest {
|
|||||||
prop.addDnsServer(InetAddresses.parseNumericAddress("2001:db8::2"));
|
prop.addDnsServer(InetAddresses.parseNumericAddress("2001:db8::2"));
|
||||||
prop.addLinkAddress(
|
prop.addLinkAddress(
|
||||||
new LinkAddress(InetAddresses.parseNumericAddress("2001:db8::"),
|
new LinkAddress(InetAddresses.parseNumericAddress("2001:db8::"),
|
||||||
NetworkConstants.RFC7421_PREFIX_LENGTH));
|
RFC7421_PREFIX_LENGTH));
|
||||||
prop.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0),
|
prop.addRoute(new RouteInfo(new IpPrefix(Inet6Address.ANY, 0),
|
||||||
InetAddresses.parseNumericAddress("2001:db8::1"),
|
InetAddresses.parseNumericAddress("2001:db8::1"),
|
||||||
interfaceName, RTN_UNICAST));
|
interfaceName, RTN_UNICAST));
|
||||||
|
|||||||
Reference in New Issue
Block a user