Searched refs:numTs (Results 1 – 4 of 4) sorted by relevance
99 int numTs = 2; in testDecodeIkeTrafficSelectors() local104 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectors()106 assertEquals(numTs, selectors.length); in testDecodeIkeTrafficSelectors()180 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsType() local185 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsType()194 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidIpProtocol() local199 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()208 int numTs = 1; in testDecodeIkeTrafficSelectorWithExpectedTrailing() local212 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithExpectedTrailing()221 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsLength() local[all …]
44 public final int numTs; field in IkeTsPayload53 numTs = Byte.toUnsignedInt(inputBuffer.get()); in IkeTsPayload()54 if (numTs == 0) { in IkeTsPayload()64 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()81 numTs = ikeTrafficSelectors.length; in IkeTsPayload()121 byteBuffer.put((byte) numTs).put(new byte[TS_HEADER_RESERVED_LEN]); in encodeToByteBuffer()
236 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors() argument238 IkeTrafficSelector[] tsArray = new IkeTrafficSelector[numTs]; in decodeIkeTrafficSelectors()242 for (int i = 0; i < numTs; i++) { in decodeIkeTrafficSelectors()
87 assertEquals(NUMBER_OF_TS, tsPayload.numTs); in testDecodeTsInitiatorPayload()