Home
last modified time | relevance | path

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

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSocketTestBase.java88 new LongSparseArray<IkeSocket.Callback>();
93 protected final IkeSocket.Callback mMockIkeSocketCallback = mock(IkeSocket.Callback.class);
114 protected abstract void setPacketReceiver(IkeSocket.IPacketReceiver packetReceiver); in setPacketReceiver()
119 Os.bind(sock, address, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in getBoundUdpSocket()
139 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in verifyCloseFd()
181 protected static class DummyPacketReceiver implements IkeSocket.IPacketReceiver {
190 public void handlePacket(byte[] revbuf, LongSparseArray<IkeSocket.Callback> spiToCallback) { in handlePacket()
224 IkeSocket getIkeSocket(IkeSocketConfig sockConfig, IkeSocket.Callback ikeSocketCallback) in getIkeSocket()
229 IkeSocketConfig spySockConfig, IkeSocket ikeSocket) throws Exception { in verifySocketConfigIsApplied()
235 IkeSocket.Callback mockIkeSocketCbOne = mock(IkeSocket.Callback.class); in verifyGetAndCloseIkeSocketSameConfig()
[all …]
DIkeUdp6SocketTest.java36 public IkeSocket getIkeSocket(
37 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback)
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(
37 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback)
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(
37 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback)
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(
70 IkeSocketConfig ikeSockConfig, IkeSocket.Callback callback)
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()
DIkeSessionTestBase.java21 import static com.android.internal.net.ipsec.test.ike.IkeSocket.SERVER_PORT_NON_UDP_ENCAPSULATED;
22 import static com.android.internal.net.ipsec.test.ike.IkeSocket.SERVER_PORT_UDP_ENCAPSULATED;
185 protected void resetMockIkeSocket(IkeSocket mockSocket) { in resetMockIkeSocket()
194 protected <T extends IkeSocket> T newMockIkeSocket(Class<T> socketClass) { in newMockIkeSocket()
DIkeUdpEncapPortPacketHandlerTest.java33 private LongSparseArray<IkeSocket.Callback> mMockSpiToCallback;
DIkeSessionStateMachineTest.java411 private IkeSocket mMockCurrentIkeSocket;
6402 private Class<? extends IkeSocket> getExpectedSocketType( in getExpectedSocketType()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionController.java61 import com.android.internal.net.ipsec.ike.IkeSocket;
106 public class IkeConnectionController implements IkeNetworkUpdater, IkeSocket.Callback {
149 private IkeSocket mIkeSocket;
317 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in newIkeUdp4Socket()
324 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in newIkeUdp6Socket()
331 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in newIkeUdp6WithEncapPortSocket()
340 IkeSocket.Callback callback, in newIkeUdpEncapSocket()
414 private void setupOrUpdateNattKeeaplive(IkeSocket ikeSocket) throws IOException { in setupOrUpdateNattKeeaplive()
440 private IkeSocket getIkeSocket(boolean isIpv4, boolean useEncapPort) throws IkeException { in getIkeSocket()
442 IkeSocket result = null; in getIkeSocket()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeUdpEncapPortPacketHandler.java55 static class PacketReceiver implements IkeSocket.IPacketReceiver {
59 byte[] recvbuf, LongSparseArray<IkeSocket.Callback> spiToCallback) { in handlePacket()
82 IkeSocket.parseAndDemuxIkePacket(ikePacketBytes, spiToCallback, 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 {
72 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
DIkeUdpEncapSocket.java45 public final class IkeUdpEncapSocket extends IkeSocket {
81 IkeSocket.Callback callback, in getIkeUdpEncapSocket()
118 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
DIkeUdp6WithEncapPortSocket.java75 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in getIkeUdpEncapSocket()
93 static void setPacketReceiver(IkeSocket.IPacketReceiver receiver) { in setPacketReceiver()
DIkeSocket.java62 public abstract class IkeSocket implements AutoCloseable { class
82 protected IkeSocket(IkeSocketConfig sockConfig, Handler handler) { in IkeSocket() method in IkeSocket
DIkeUdp4Socket.java66 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in getInstance()
DIkeUdp6Socket.java66 IkeSocketConfig sockConfig, IkeSocket.Callback callback, Handler handler) in getInstance()
DSaRecord.java522 udpEncapSocket, IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in makeIpSecTransform()
DIkeSessionStateMachine.java233 IkeSocket.Callback,
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/keepalive/
DSoftwareKeepaliveImpl.java26 import com.android.internal.net.ipsec.ike.IkeSocket;
89 IkeSocket.SERVER_PORT_UDP_ENCAPSULATED); in sendKeepaliveAndScheduleNext()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/net/
DIkeConnectionControllerTest.java85 import com.android.internal.net.ipsec.test.ike.IkeSocket;
254 private void verifySocketBoundToNetwork(IkeSocket socket, Network network) throws Exception { in verifySocketBoundToNetwork()
262 Class<? extends IkeSocket> socketType) in verifySetup()
277 private void verifyDscpSetForSocket(Class<? extends IkeSocket> socketType) throws Exception { in verifyDscpSetForSocket()
363 private Class<? extends IkeSocket> getExpectedSocketType(boolean isIpv4, boolean force4500) { in getExpectedSocketType()
1166 Class<? extends IkeSocket> expectedSocketType) in verifyUnderlyingNetworkUpdated()