Unhide IpPrefix(InetAddress, int)

Unhide IpPrefix constructor to allow its usage with the new
VpnService.Builder#excludeRoute(IpPrefix) method.

Bug: 186082280
Test: atest IpPrefixTest
Change-Id: Ie5b62b2b206def1be53a41219681b4a8bc06c1d2
This commit is contained in:
Taras Antoshchuk
2021-09-20 14:22:18 +02:00
parent 62065db8d1
commit a5a1b80222
4 changed files with 4 additions and 3 deletions

View File

@@ -122,6 +122,9 @@ public class IpPrefixTest {
p = new IpPrefix("[2001:db8::123]/64");
assertEquals("2001:db8::/64", p.toString());
p = new IpPrefix(InetAddresses.parseNumericAddress("::128"), 64);
assertEquals("::/64", p.toString());
}
@Test