Home
last modified time | relevance | path

Searched refs:localAddr (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DIpSecBaseTest.java211 public JavaUdpSocket(InetAddress localAddr, int port) { in JavaUdpSocket() argument
213 mSocket = new DatagramSocket(port, localAddr); in JavaUdpSocket()
222 public JavaUdpSocket(InetAddress localAddr) { in JavaUdpSocket() argument
224 mSocket = new DatagramSocket(0, localAddr); in JavaUdpSocket()
338 InetAddress localAddr, IpSecManager ism, IpSecTransform transform, boolean connected) in getNativeUdpSocketPair() argument
340 int domain = getDomain(localAddr); in getNativeUdpSocketPair()
349 Os.bind(sock.mFd, localAddr, 0); in getNativeUdpSocketPair()
353 Os.connect(leftSock.mFd, localAddr, rightSock.getPort()); in getNativeUdpSocketPair()
354 Os.connect(rightSock.mFd, localAddr, leftSock.getPort()); in getNativeUdpSocketPair()
361 InetAddress localAddr, IpSecManager ism, IpSecTransform transform) throws Exception { in getNativeTcpSocketPair() argument
[all …]
DIpSecManagerTest.java237 InetAddress localAddr = InetAddress.getByName(IPV4_LOOPBACK); in testCreateTransform() local
239 mISM.allocateSecurityParameterIndex(localAddr); in testCreateTransform()
249 .buildTransportModeTransform(localAddr, spi); in testCreateTransform()
254 final DatagramPacket outPacket = new DatagramPacket(data, 0, data.length, localAddr, 0); in testCreateTransform()
566 NativeUdpSocket wrappedEncapSocket, InetAddress localAddr) throws Exception { in checkIkePacket() argument
569 try (NativeUdpSocket remoteSocket = new NativeUdpSocket(getBoundUdpSocket(localAddr))) { in checkIkePacket()
579 remoteSocket.sendTo(dataWithEspHeader, localAddr, wrappedEncapSocket.getPort()); in checkIkePacket()
584 wrappedEncapSocket.sendTo(dataWithEspHeader, localAddr, remoteSocket.getPort()); in checkIkePacket()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DIkeSessionTestBase.java196 void setUpTestNetwork(InetAddress localAddr) throws Exception { in setUpTestNetwork() argument
197 int prefixLen = localAddr instanceof Inet4Address ? IP4_PREFIX_LEN : IP6_PREFIX_LEN; in setUpTestNetwork()
200 sTNM.createTunInterface(new LinkAddress[] {new LinkAddress(localAddr, prefixLen)}); in setUpTestNetwork()
/cts/tests/tests/tethering/src/android/tethering/cts/
DTetheringManagerTest.java347 final LinkAddress localAddr = new LinkAddress("192.168.24.5/24"); in testTetheringRequest() local
350 .setStaticIpv4Addresses(localAddr, clientAddr) in testTetheringRequest()
354 assertEquals(localAddr, tr2.getLocalIpv4Address()); in testTetheringRequest()