Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Extension of TC packet segmentation test for TC frame
Browse files Browse the repository at this point in the history
  • Loading branch information
dariol83 committed Jan 26, 2024
1 parent 4ba2efc commit 36b10b2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,13 @@ public void testLargePacketSegmented() throws IOException {

byte[] segment = fr.getDataFieldCopy();
if (i == 0) {
assertEquals(1, (segment[0] & 0xC0) >> 6);
assertEquals(TcTransferFrame.SequenceFlagType.FIRST, fr.getSequenceFlag());
} else if (i == 3) {
assertEquals(2, (segment[0] & 0xC0) >> 6);
assertEquals(TcTransferFrame.SequenceFlagType.LAST, fr.getSequenceFlag());
} else {
assertEquals(0, (segment[0] & 0xC0) >> 6);
assertEquals(TcTransferFrame.SequenceFlagType.CONTINUE, fr.getSequenceFlag());
}
assertEquals(12, fr.getMapId());
Expand Down

0 comments on commit 36b10b2

Please sign in to comment.