Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc6aaae9 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Automerger Merge Worker
Browse files

Merge "Test that the system doesn't accept non-/96 NAT64 prefixes." into rvc-dev am: 055652bf

Change-Id: I9bb45fc2bf050d3cd5c70a490262e634f455ee22
parents 8d006eeb 055652bf
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -1533,6 +1533,13 @@ public class IpClientIntegrationTest {
        expectAlarmCancelled(inOrder, pref64Alarm);
        expectAlarmCancelled(inOrder, pref64Alarm);
        expectNat64PrefixUpdate(inOrder, null);
        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.
        // Re-announce the prefix.
        pref64 = new StructNdOptPref64(prefix, 600).toByteBuffer();
        pref64 = new StructNdOptPref64(prefix, 600).toByteBuffer();
        ra = buildRaPacket(pio, rdnss, pref64);
        ra = buildRaPacket(pio, rdnss, pref64);