/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocketTestBase.java | 115 protected abstract void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver); in setPacketReceiver() 120 Os.bind(sock, address, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in getBoundUdpSocket() 140 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in verifyCloseFd() 182 protected static class DummyPacketReceiver implements IkeSocket.IPacketReceiver { 226 IkeSocket getIkeSocket(IkeSocketConfig sockConfig, IkeSessionStateMachine ikeSession) in getIkeSocket() 231 IkeSocketConfig spySockConfig, IkeSocket ikeSocket) throws Exception { in verifySocketConfigIsApplied() 242 IkeSocket ikeSocketOne = in verifyGetAndCloseIkeSocketSameConfig() 247 IkeSocket ikeSocketTwo = in verifyGetAndCloseIkeSocketSameConfig() 274 IkeSocket ikeSocketOne = in verifyGetAndCloseIkeSocketDifferentConfig() 279 IkeSocket ikeSocketTwo = in verifyGetAndCloseIkeSocketDifferentConfig() [all …]
|
D | IkeUdp6SocketTest.java | 36 public IkeSocket getIkeSocket( 43 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 48 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 55 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketSameNetwork() 61 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketDifferentNetwork()
|
D | IkeUdp6WithEncapPortSocketTest.java | 36 public IkeSocket getIkeSocket( 44 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 49 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 56 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6WithEncapPortSocketTestSameNetwork() 62 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6WithEncapPortSocketTestDifferentNetwork()
|
D | IkeUdp4SocketTest.java | 36 public IkeSocket getIkeSocket( 43 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 48 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 55 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketSameNetwork() 61 mIkeSocketFactory, IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED); in testGetAndCloseIkeUdp6SocketDifferentNetwork()
|
D | IkeUdpEncapSocketTest.java | 69 public IkeSocket getIkeSocket( 117 private IkeSocket.IPacketReceiver getPacketReceiver() { in getPacketReceiver() 122 protected void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver) { in setPacketReceiver() 129 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdpEncapSocketSameNetwork() 137 mIkeSocketFactory, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in testGetAndCloseIkeUdpEncapSocketDifferentNetwork()
|
D | IkeSessionStateMachineTest.java | 44 import static com.android.internal.net.ipsec.test.ike.IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED; 45 import static com.android.internal.net.ipsec.test.ike.IkeSocket.SERVER_PORT_UDP_ENCAPSULATED; 378 private IkeSocket mSpyCurrentIkeSocket; 455 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED)); in makeDummyReceivedIkeInitRespPacket() 1712 final IkeSocket ikeSocket = mIkeSessionStateMachine.mIkeSocket; in testCreateIkeLocalIkeInitNatTraversalWithEnforcePort4500() 5711 private Class<? extends IkeSocket> getExpectedSocketType( in getExpectedSocketType()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeUdpEncapPortPacketHandler.java | 55 static class PacketReceiver implements IkeSocket.IPacketReceiver { 82 IkeSocket.parseAndDemuxIkePacket(ikePacketBytes, spiToIkeSession, TAG); in handlePacket() 112 Os.sendto(mSocket, buffer, 0, serverAddress, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in sendIkePacket()
|
D | IkeUdpSocket.java | 37 public abstract class IkeUdpSocket extends IkeSocket { 58 static final class PacketReceiver implements IkeSocket.IPacketReceiver { 73 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
|
D | IkeUdpEncapSocket.java | 45 public final class IkeUdpEncapSocket extends IkeSocket { 118 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
|
D | IkeSocket.java | 61 public abstract class IkeSocket implements AutoCloseable { class 83 protected IkeSocket(IkeSocketConfig sockConfig, Handler handler) { in IkeSocket() method in IkeSocket
|
D | IkeUdp6WithEncapPortSocket.java | 94 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
|
D | IkeSessionStateMachine.java | 432 @VisibleForTesting IkeSocket mIkeSocket; 893 private void switchToIkeSocket(IkeSocket newSocket) { in switchToIkeSocket() 916 private IkeSocket getIkeSocket(boolean isIpv4, boolean useEncapPort) in getIkeSocket() 943 IkeSocket newSocket = getIkeSocket(isIpv4, useEncapPort); in getAndSwitchToIkeSocket() 958 private void migrateSpiToIkeSocket(long localSpi, IkeSocket oldSocket, IkeSocket newSocket) { in migrateSpiToIkeSocket() 3386 IkeSocket newSocket = getIkeSocket(isIpv4, true /* useEncapPort */); in handleNatDetection() 3405 private void switchToIkeSocket(long localSpi, IkeSocket newSocket) { in switchToIkeSocket() 3714 && mIkeSocket.getIkeServerPort() != IkeSocket.SERVER_PORT_UDP_ENCAPSULATED) { in setUpMobilityHandling() 5644 ? IkeSocket.SERVER_PORT_UDP_ENCAPSULATED in onUnderlyingNetworkUpdated() 5645 : IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED; in onUnderlyingNetworkUpdated()
|
D | SaRecord.java | 523 udpEncapSocket, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in makeIpSecTransform()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/ |
D | SoftwareKeepaliveImpl.java | 29 import com.android.internal.net.ipsec.ike.IkeSocket; 92 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in sendKeepaliveAndScheduleNext()
|