diff options
| author | Chalard Jean <jchalard@google.com> | 2019-11-22 17:48:49 +0900 |
|---|---|---|
| committer | Maciej Żenczykowski <maze@google.com> | 2019-11-30 10:25:02 +0000 |
| commit | f9e2215cc4ad92357725fbe9e3c4d26b8a86d8dd (patch) | |
| tree | e0fc417fa0e80698f7b0279afa6c0577e7f3660d /core/java/android/net/LinkProperties.java | |
| parent | b578bdbe43ef7bedcda2993cf262137c7452e802 (diff) | |
Give apps access to the NAT64 prefix.
Apps that do their own DNS queries need to know the NAT64 prefix
to resolve v4 addresses on v6-only networks.
Test: FrameworksNetTests NetworkStackTests
Bug: 144877069
Change-Id: I5a255b7afc2038646b93a0ab893f8ad62d0fb34f
Diffstat (limited to 'core/java/android/net/LinkProperties.java')
| -rw-r--r-- | core/java/android/net/LinkProperties.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/core/java/android/net/LinkProperties.java b/core/java/android/net/LinkProperties.java index 0706e755d133..8e1834113486 100644 --- a/core/java/android/net/LinkProperties.java +++ b/core/java/android/net/LinkProperties.java @@ -762,10 +762,7 @@ public final class LinkProperties implements Parcelable { * Returns the NAT64 prefix in use on this link, if any. * * @return the NAT64 prefix or {@code null}. - * @hide */ - @SystemApi - @TestApi public @Nullable IpPrefix getNat64Prefix() { return mNat64Prefix; } @@ -777,10 +774,7 @@ public final class LinkProperties implements Parcelable { * 128-bit IPv6 address) are supported or {@code null} for no prefix. * * @param prefix the NAT64 prefix. - * @hide */ - @SystemApi - @TestApi public void setNat64Prefix(@Nullable IpPrefix prefix) { if (prefix != null && prefix.getPrefixLength() != 96) { throw new IllegalArgumentException("Only 96-bit prefixes are supported: " + prefix); |
