summaryrefslogtreecommitdiff
path: root/server/InterfaceControllerTest.cpp
diff options
context:
space:
mode:
authorRubin Xu <rubinxu@google.com>2018-04-27 14:27:59 +0100
committerRubin Xu <rubinxu@google.com>2018-06-07 08:12:24 +0100
commit6c00b61656da32ce3223a2fc711f5649b6b7b5ac (patch)
tree3757ef63883c1e5916c0a635d329c9d77ab5280e /server/InterfaceControllerTest.cpp
parent18a257aecc1b4a380f6245134c74640b753bba87 (diff)
Do not destroy socket when VPN interface address is still in use
Normally when an IP address is removed, all sockets associated with the addresses are destroyed. This patchset changes this behavior such that if the address in question is still being used by another interface that belongs to the same underlying virtual network, the destroy operation is skipped. This change is needed to support VPN seamless handover where the VPN app will establish a second TUN interface (with different config) before tearing down the existing interface. The intention is that during this handover existing socket connections should not be disturbed. There is a companion change in the framework side to make sure during such handover, the VPN netId remains unchanged so routing still works. Bug: 64692591 Test: cts-tradefed run commandAndExit cts-dev -m CtsHostsideNetworkTests -t com.android.cts.net.HostsideVpnTests Test: system/netd/tests/runtests.sh Change-Id: I02c6b0db5f15cd1aef3e3fa6f0c36e86b4f427fd Merged-In: I02c6b0db5f15cd1aef3e3fa6f0c36e86b4f427fd (cherry picked from commit acbb6b7bbea17c5653929ee5224bd4f8e16c0f69)
Diffstat (limited to 'server/InterfaceControllerTest.cpp')
0 files changed, 0 insertions, 0 deletions