Searched refs:newSocket (Results 1 – 2 of 2) sorted by relevance
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/net/ |
D | IkeConnectionController.java | 474 private void migrateSpiToIkeSocket(long localSpi, IkeSocket oldSocket, IkeSocket newSocket) { in migrateSpiToIkeSocket() argument 475 newSocket.registerIke(localSpi, this); in migrateSpiToIkeSocket() 480 IkeSocket newSocket = getIkeSocket(isIpv4, useEncapPort); in getAndSwitchToIkeSocket() local 483 setupOrUpdateNattKeeaplive(newSocket); in getAndSwitchToIkeSocket() 488 if (newSocket != mIkeSocket) { in getAndSwitchToIkeSocket() 490 migrateSpiToIkeSocket(saRecord.getLocalSpi(), mIkeSocket, newSocket); in getAndSwitchToIkeSocket() local 493 mIkeSocket = newSocket; in getAndSwitchToIkeSocket() 865 IkeSocket newSocket = getIkeSocket(true /* isIpv4 */, true /* useEncapPort */); in handleNatDetectionResultInIkeInit() local 868 setupOrUpdateNattKeeaplive(newSocket); in handleNatDetectionResultInIkeInit() 873 if (newSocket != mIkeSocket) { in handleNatDetectionResultInIkeInit() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | IpSecServiceTest.java | 233 FileDescriptor newSocket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in testOpenUdpEncapsulationSocketAfterClose() local 234 Os.bind(newSocket, INADDR_ANY, localport); in testOpenUdpEncapsulationSocketAfterClose() 235 Os.close(newSocket); in testOpenUdpEncapsulationSocketAfterClose() 252 FileDescriptor newSocket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in testUdpEncapPortNotReleased() local 254 Os.bind(newSocket, INADDR_ANY, localport); in testUdpEncapPortNotReleased()
|