Fix the number of routes assertion error for IPv6 link-local mode.
Ideally there should be only one route("fe80::/64 -> :: iface mtu 0")
configured on the interface for IPv6 link-local mode, however, notice
that there is another route("ff00::/8 -> :: iface mtu 0") configured on
the interface upon it brings up on S platform, this breaks the assertion
of route size in the NetworkStackRootTests only on S. Instead of
checking the specific number of routes, verify if tap interface has the
route to the link-local prefix("fe80::/64") to keep compatibility with
previous OS.
Bug: 259367138
Test: atest android.net.ip.IpClientRootTest#testIPv6LinkLocalOnly --iterations
Change-Id: If00e6df75758ad397a7192f74bafeaf3b3f7d6db
1 file changed