Searched refs:numTs (Results 1 – 4 of 4) sorted by relevance
100 int numTs = 2; in testDecodeIkeTrafficSelectors() local105 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectors()107 assertEquals(numTs, selectors.length); in testDecodeIkeTrafficSelectors()197 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsType() local202 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidTsType()211 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidIpProtocol() local216 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithInvalidIpProtocol()225 int numTs = 1; in testDecodeIkeTrafficSelectorWithExpectedTrailing() local229 IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in testDecodeIkeTrafficSelectorWithExpectedTrailing()238 int numTs = 1; in testDecodeIkeTrafficSelectorWithInvalidTsLength() local[all …]
43 public final int numTs; field in IkeTsPayload52 numTs = Byte.toUnsignedInt(inputBuffer.get()); in IkeTsPayload()53 if (numTs == 0) { in IkeTsPayload()63 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()80 numTs = ikeTrafficSelectors.length; in IkeTsPayload()120 byteBuffer.put((byte) numTs).put(new byte[TS_HEADER_RESERVED_LEN]); in encodeToByteBuffer()
279 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors() argument281 IkeTrafficSelector[] tsArray = new IkeTrafficSelector[numTs]; in decodeIkeTrafficSelectors()285 for (int i = 0; i < numTs; i++) { in decodeIkeTrafficSelectors()
87 assertEquals(NUMBER_OF_TS, tsPayload.numTs); in testDecodeTsInitiatorPayload()