Searched refs:protocolId (Results 1 – 9 of 9) sorted by relevance
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayload.java | 216 public final int protocolId; field in IkeNotifyPayload 235 protocolId = Byte.toUnsignedInt(inputBuffer.get()); in IkeNotifyPayload() 260 if (protocolId != PROTOCOL_ID_AH && protocolId != PROTOCOL_ID_ESP) { in validateNotifyPayloadForExistingChildSa() 262 "Expected Procotol ID AH(2) or ESP(3): Protocol ID is " + protocolId); in validateNotifyPayloadForExistingChildSa() 272 if (protocolId != PROTOCOL_ID_UNSET) { in validateNotifyPayloadForIkeAndNewChild() 273 getIkeLog().w(TAG, "Expected Procotol ID unset: Protocol ID is " + protocolId); in validateNotifyPayloadForIkeAndNewChild() 331 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) notifyType); in encodeToByteBuffer() 349 @ProtocolId int protocolId, byte spiSize, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() 351 this.protocolId = protocolId; in IkeNotifyPayload() 393 @ProtocolId int protocolId, int spi, int notifyType, byte[] notifyData) { in IkeNotifyPayload() [all …]
|
D | IkeDeletePayload.java | 58 @ProtocolId public final int protocolId; field in IkeDeletePayload 79 protocolId = Byte.toUnsignedInt(inputBuffer.get()); in IkeDeletePayload() 84 switch (protocolId) { in IkeDeletePayload() 118 protocolId = PROTOCOL_ID_IKE; in IkeDeletePayload() 136 protocolId = PROTOCOL_ID_ESP; in IkeDeletePayload() 151 byteBuffer.put((byte) protocolId).put(spiSize).putShort((short) numSpi); in encodeToByteBuffer()
|
D | IkeSaPayload.java | 96 boolean firstIsIkeProposal = (proposalList.get(0).protocolId == PROTOCOL_ID_IKE); in IkeSaPayload() 98 boolean isIkeProposal = (proposalList.get(i).protocolId == PROTOCOL_ID_IKE); in IkeSaPayload() 555 public final int protocolId; field in IkeSaPayload.Proposal 565 int protocolId, in Proposal() argument 570 this.protocolId = protocolId; in Proposal() 588 int protocolId = Byte.toUnsignedInt(inputBuffer.get()); in readFrom() local 646 if (protocolId == PROTOCOL_ID_IKE) { in readFrom() 694 if (protocolId != reqProposal.protocolId || number != reqProposal.number) { in isNegotiatedFrom() 709 .put((byte) protocolId) in encodeToByteBuffer()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeDeletePayloadTest.java | 65 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testDecodeDeleteIkePayload() 84 assertEquals(IkePayload.PROTOCOL_ID_ESP, deletePayload.protocolId); in testDecodeDeleteChildPayload() 157 assertEquals(PROTOCOL_ID_IKE, deletePayload.protocolId); in testOutboundConstructorForIke() 168 assertEquals(PROTOCOL_ID_ESP, deletePayload.protocolId); in testOutboundConstructorWithSingleChildSa() 179 assertEquals(PROTOCOL_ID_ESP, deletePayload.protocolId); in testOutboundConstructorWithMultipleChildSas()
|
D | IkeSaPayloadTest.java | 641 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId); 659 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId); 705 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId); 722 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId); 744 assertEquals(IkePayload.PROTOCOL_ID_ESP, proposal.protocolId);
|
D | IkeNotifyPayloadTest.java | 68 assertEquals(IkePayload.PROTOCOL_ID_UNSET, payload.protocolId); in testDecodeNotifyPayloadSpiUnset() 80 assertEquals(IkePayload.PROTOCOL_ID_ESP, payload.protocolId); in testDecodeNotifyPayloadSpiSet()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachineTest.java | 3060 assertEquals(IkePayload.PROTOCOL_ID_IKE, proposal.protocolId); in testRekeyIkeLocalCreateSendsRequest() 3332 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testRekeyIkeLocalDeleteSendsRequest() 4009 assertEquals(IkePayload.PROTOCOL_ID_IKE, deletePayload.protocolId); in testDeleteIkeLocalDeleteRequest()
|
D | ChildSessionStateMachineTest.java | 917 assertEquals(PROTOCOL_ID_ESP, notifyPayload.protocolId); in verifyOutboundRekeyNotifyPayload()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSessionStateMachine.java | 1323 if (saPayload.proposalList.get(0).protocolId == IkePayload.PROTOCOL_ID_IKE) { in getIkeExchangeSubType() 1353 if (deletePayload.protocolId == IkePayload.PROTOCOL_ID_IKE) { in getIkeExchangeSubType()
|