diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2020-05-07 14:39:19 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-05-07 14:39:19 +0000 |
commit | b4a78b85a7bfe5a898b26aa803ca96e3398afa39 (patch) | |
tree | 6fe8266e8272b4c86102067ff3690daa304b9a3b | |
parent | adb50c61d9ae3ccdee45cab840d23964f0339587 (diff) | |
parent | 01cc8ed157bb742697c0302a321c2410d8f05e6a (diff) |
Merge "Test that the system doesn't accept non-/96 NAT64 prefixes." into rvc-dev am: 055652bf53 am: 01cc8ed157
Change-Id: I8e3e26479da52a011d85867c8a1aa5b8e2f4f81c
-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); |