OSDN Git Service

Support seamless handover between VPN fds.
authorLorenzo Colitti <lorenzo@google.com>
Fri, 22 Sep 2017 12:27:32 +0000 (21:27 +0900)
committerRubin Xu <rubinxu@google.com>
Tue, 5 Jun 2018 14:31:58 +0000 (15:31 +0100)
commitd9dbfa65c662e9b4f8064191663252925161dbfc
treeb3ac3dc55a0a19d4af0efda98ead6304b61cbfb4
parentb82d3d7e741ff8fe6bf7d1cae79d519fe4922d9a
Support seamless handover between VPN fds.

This used to work before SOCK_DESTROY allowed us to close
connections when VPNs connected and disconnected. Instead of
doing this like the old code did by registering a new
NetworkAgent, support (limited) seamless handover on the
same NetworkAgent and netId.

Bug: 64692591
Test: cts-tradefed run commandAndExit cts-dev -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideVpnTests#testSeamlessHandover
Change-Id: Idad0ec5946e7eb9e1f4a13c92ea7138de6a46f16
services/core/java/com/android/server/connectivity/Vpn.java