Home
last modified time | relevance | path

Searched refs:expectedMsgId (Results 1 – 11 of 11) sorted by relevance

/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeSessionMobikeTest.java168 int expectedMsgId = 2; in testMigrateNetworks() local
175 expectedMsgId++, in testMigrateNetworks()
189 mSecondaryTunNetworkContext, expectedMsgId++, IKE_CREATE_CHILD_RESP); in testMigrateNetworks()
192 expectedMsgId++, in testMigrateNetworks()
201 expectedMsgId++, in testMigrateNetworks()
251 int expectedMsgId, in setNetworkAndVerifyConnectionInfoChange() argument
262 expectedMsgId, in setNetworkAndVerifyConnectionInfoChange()
283 TunNetworkContext tunNetworkContext, int expectedMsgId, String ikeCreateChildResp) in injectCreateChildRespAndVerifyTransformsMigrated() argument
287 expectedMsgId, in injectCreateChildRespAndVerifyTransformsMigrated()
304 int expectedMsgId, in injectDeleteChildRespAndVerifyTransformsDeleted() argument
[all …]
DIkeTunUtils.java72 int expectedMsgId, in awaitReqAndInjectResp() argument
78 expectedMsgId, in awaitReqAndInjectResp()
94 int expectedMsgId, in awaitReqAndInjectResp() argument
108 expectedMsgId, in awaitReqAndInjectResp()
124 expectedMsgId, in awaitReqAndInjectResp()
157 public byte[] awaitResp(long expectedInitIkeSpi, int expectedMsgId, boolean expectedUseEncap) in awaitResp() argument
164 expectedMsgId, in awaitResp()
199 int expectedMsgId, in isExpectedIkePkt() argument
208 pkt, ikeOffset, expectedInitIkeSpi, expectedMsgId, expectedResp); in isExpectedIkePkt()
214 int expectedMsgId, in isExpectedIkeFragPkt() argument
[all …]
DIkeSessionMschapV2Test.java184 int expectedMsgId = 0; in testIkeSessionSetupAndChildSessionSetupWithTransportMode() local
187 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
193 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
200 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
205 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
210 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
215 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
233 performCloseIkeBlocking(expectedMsgId++, DELETE_IKE_RESP); in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
DIkeSessionPskTest.java111 int expectedMsgId = 2; in testIkeSessionSetupAndChildSessionSetupWithTunnelMode() local
140 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTunnelMode()
160 expectedMsgId++, in testIkeSessionSetupAndChildSessionSetupWithTunnelMode()
172 performCloseIkeBlocking(expectedMsgId++, SUCCESS_DELETE_IKE_RESP); in testIkeSessionSetupAndChildSessionSetupWithTunnelMode()
230 int expectedMsgId = 2; in testIkeSessionSetupAndChildSessionSetupWithAesCmac() local
249 performCloseIkeBlocking(expectedMsgId++, true /* expectedUseEncap */, deleteIkeResp); in testIkeSessionSetupAndChildSessionSetupWithAesCmac()
302 int expectedMsgId = 2; in testIkeSessionSetupAndChildSessionSetupWithTunnelModeV6() local
322 performCloseIkeBlocking(expectedMsgId++, false /* expectedUseEncap */, deleteIkeResp); in testIkeSessionSetupAndChildSessionSetupWithTunnelModeV6()
345 int expectedMsgId = 0; in verifyIkeInitFail() local
348 expectedMsgId++, in verifyIkeInitFail()
DIkeSessionDigitalSignatureTest.java199 int expectedMsgId = 2; in testIkeSessionSetupAndChildSessionSetupWithTransportMode() local
215 performCloseIkeBlocking(expectedMsgId++, DELETE_IKE_RESP); in testIkeSessionSetupAndChildSessionSetupWithTransportMode()
DIkeSessionTestBase.java306 void performCloseIkeBlocking(int expectedMsgId, String deleteIkeRespHex) throws Exception { in performCloseIkeBlocking() argument
307 performCloseIkeBlocking(expectedMsgId, true /* expectedUseEncap*/, deleteIkeRespHex); in performCloseIkeBlocking()
311 int expectedMsgId, boolean expectedUseEncap, String deleteIkeRespHex) throws Exception { in performCloseIkeBlocking() argument
313 IKE_DETERMINISTIC_INITIATOR_SPI, expectedMsgId, expectedUseEncap, deleteIkeRespHex); in performCloseIkeBlocking()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkeTunUtils.java55 public byte[] awaitReqAndInjectResp(long expectedInitIkeSpi, int expectedMsgId, in awaitReqAndInjectResp() argument
57 final byte[] request = awaitIkePacket(expectedInitIkeSpi, expectedMsgId, encapExpected); in awaitReqAndInjectResp()
71 private byte[] awaitIkePacket(long expectedInitIkeSpi, int expectedMsgId, boolean expectEncap) in awaitIkePacket() argument
73 return super.awaitPacket(pkt -> isIke(pkt, expectedInitIkeSpi, expectedMsgId, expectEncap)); in awaitIkePacket()
77 byte[] pkt, long expectedInitIkeSpi, int expectedMsgId, boolean encapExpected) { in isIke() argument
96 && areSpiAndMsgIdEqual(pkt, ikeOffset, expectedInitIkeSpi, expectedMsgId); in isIke()
112 byte[] pkt, int ikeOffset, long expectedIkeInitSpi, int expectedMsgId) { in areSpiAndMsgIdEqual() argument
121 return expectedIkeInitSpi == spi && expectedMsgId == msgId; in areSpiAndMsgIdEqual()
DIkev2VpnTest.java546 int expectedMsgId = 0; in checkStartStopVpnProfileBuildsNetworks() local
547 tunUtils.awaitReqAndInjectResp(IKE_INITIATOR_SPI, expectedMsgId++, false /* isEncap */, in checkStartStopVpnProfileBuildsNetworks()
549 tunUtils.awaitReqAndInjectResp(IKE_INITIATOR_SPI, expectedMsgId++, hasNat /* isEncap */, in checkStartStopVpnProfileBuildsNetworks()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessage.java159 public static DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument
160 return sIkeMessageHelper.decode(expectedMsgId, header, inputPacket); in decode()
176 int expectedMsgId, in decode() argument
184 expectedMsgId, in decode()
525 DecodeResult decode(int expectedMsgId, IkeHeader ikeHeader, byte[] packet); in decode() argument
540 int expectedMsgId, in decode() argument
688 public DecodeResult decode(int expectedMsgId, IkeHeader header, byte[] inputPacket) { in decode() argument
690 if (header.messageId != expectedMsgId) { in decode()
716 int expectedMsgId, in decode() argument
724 expectedMsgId, in decode()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeMessageTest.java656 int expectedMsgId, in decodeSkf() argument
662 expectedMsgId, in decodeSkf()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java2034 int expectedMsgId = ikeSaRecord.getLocalRequestMessageId(); in handleReceivedIkePacket() local
2035 if (expectedMsgId - 1 == ikeHeader.messageId) { in handleReceivedIkePacket()
2042 expectedMsgId, in handleReceivedIkePacket()
2096 int expectedMsgId = ikeSaRecord.getRemoteRequestMessageId(); in handleReceivedIkePacket() local
2097 if (expectedMsgId - 1 == ikeHeader.messageId) { in handleReceivedIkePacket()
2121 expectedMsgId, in handleReceivedIkePacket()