diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-05-07 14:16:41 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-07 14:16:41 +0000 |
commit | 01cc8ed157bb742697c0302a321c2410d8f05e6a (patch) | |
tree | 49ad6cf77f8d478ae42c7bac2d9dc35c657cfb98 | |
parent | f38206a9c589bb0e4029a1b453dd7fd747dea2c9 (diff) | |
parent | 055652bf53bb1a2369882b747b7c3fc9c4105b4f (diff) |
Merge "Test that the system doesn't accept non-/96 NAT64 prefixes." into rvc-dev am: 055652bf53
Change-Id: I5e46dba502e1a3b167080fe88b6e7785e8c64f63
-rw-r--r-- | tests/integration/src/android/net/ip/IpClientIntegrationTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/integration/src/android/net/ip/IpClientIntegrationTest.java b/tests/integration/src/android/net/ip/IpClientIntegrationTest.java index 4a3f445..e286439 100644 --- a/tests/integration/src/android/net/ip/IpClientIntegrationTest.java +++ b/tests/integration/src/android/net/ip/IpClientIntegrationTest.java @@ -1528,6 +1528,13 @@ public class IpClientIntegrationTest { expectAlarmCancelled(inOrder, pref64Alarm); expectNat64PrefixUpdate(inOrder, null); + // Announce a non-/96 prefix and expect it to be ignored. + IpPrefix invalidPrefix = new IpPrefix("64:ff9b::/64"); + pref64 = new StructNdOptPref64(invalidPrefix, 1200).toByteBuffer(); + ra = buildRaPacket(pio, rdnss, pref64); + mPacketReader.sendResponse(ra); + expectNoNat64PrefixUpdate(inOrder, invalidPrefix); + // Re-announce the prefix. pref64 = new StructNdOptPref64(prefix, 600).toByteBuffer(); ra = buildRaPacket(pio, rdnss, pref64); |