Home
last modified time | relevance | path

Searched refs:IkeSocket (Results 1 – 14 of 14) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSocketTestBase.java115 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 …]
DIkeUdp6SocketTest.java36 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()
DIkeUdp6WithEncapPortSocketTest.java36 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()
DIkeUdp4SocketTest.java36 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()
DIkeUdpEncapSocketTest.java69 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()
DIkeSessionStateMachineTest.java44 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/
DIkeUdpEncapPortPacketHandler.java55 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()
DIkeUdpSocket.java37 public abstract class IkeUdpSocket extends IkeSocket {
58 static final class PacketReceiver implements IkeSocket.IPacketReceiver {
73 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
DIkeUdpEncapSocket.java45 public final class IkeUdpEncapSocket extends IkeSocket {
118 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
DIkeSocket.java61 public abstract class IkeSocket implements AutoCloseable { class
83 protected IkeSocket(IkeSocketConfig sockConfig, Handler handler) { in IkeSocket() method in IkeSocket
DIkeUdp6WithEncapPortSocket.java94 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
DIkeSessionStateMachine.java432 @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()
DSaRecord.java523 udpEncapSocket, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in makeIpSecTransform()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/
DSoftwareKeepaliveImpl.java29 import com.android.internal.net.ipsec.ike.IkeSocket;
92 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in sendKeepaliveAndScheduleNext()