DscpPolicy: remove v6 default route as it is added by the RA

Adding this route before receiving the RA causes the kernel to complain
and fail adding the the global v6 address:
"ICMPv6  : RA: ndisc_router_discovery failed to add default route."

Test: atest DscpPolicyTest
Bug: 235559605
Change-Id: I1d2bfd52e05c334f9808e60455c346b4dca18cf7
Merged-In: I1d2bfd52e05c334f9808e60455c346b4dca18cf7
(cherry picked from commit 1bba92f1bc)
This commit is contained in:
Patrick Rohr
2022-08-18 13:24:16 -07:00
parent 0e965e431f
commit e0196ea540

View File

@@ -297,7 +297,6 @@ class DscpPolicyTest {
val lp = LinkProperties().apply { val lp = LinkProperties().apply {
addLinkAddress(LinkAddress(LOCAL_IPV4_ADDRESS, IP4_PREFIX_LEN)) addLinkAddress(LinkAddress(LOCAL_IPV4_ADDRESS, IP4_PREFIX_LEN))
addRoute(RouteInfo(IpPrefix("0.0.0.0/0"), null, null)) addRoute(RouteInfo(IpPrefix("0.0.0.0/0"), null, null))
addRoute(RouteInfo(IpPrefix("::/0"), TEST_ROUTER_IPV6_ADDR))
setInterfaceName(specifier) setInterfaceName(specifier)
} }
val config = NetworkAgentConfig.Builder().build() val config = NetworkAgentConfig.Builder().build()