summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Chalard Jean <jchalard@google.com> 2023-03-31 18:21:44 +0900
committer Chalard Jean <jchalard@google.com> 2023-04-14 12:25:29 +0900
commit2337cef33539eb1ee1838cbeb4396069fded9427 (patch)
treece63e303a1aed7745553aeff087c9697dd58cb5a /cmds/bootanimation/BootAnimation.cpp
parent5288559979da616c0b71979e383b00ee6fa554ac (diff)
Migrate/restart IKE session with delay upon net update
When the underlying network sees an update of its NetworkCaps or LinkProperties, the IKE connection needs to try and migrate because some parameters are deduced from them (e.g., from NetworkCaps the transport is used to infer the correct encap type ; from LP the available IP address families are used (in some cases) to infer the correct source IP to use). It is therefore necessary to try and migrate or restart the IKE connection when the relevant changes happen. IP family changes are especially important but any IP address change may require migration. However, starting the migration immediately is both costly (it is relatively likely another change will happen immediately – indeed, that's guaranteed when the network first connect) and racy, because the IKE library might not yet be aware of changes to the network. In practice, the call terminates in the IKE library fetching the NC and LP using the synchronous ConnectivityManager method. That's unadvisable (and indeed, is likely the cause of bugs in that library today), but the delay will help stabilizing getting the correct arguments here. Further, if the IKE code is ever fixed to use callbacks, this delay will be instrumental in making sure the IKE code has been updated in time about the network properties. Test: VpnTest Bug: 269715746 Change-Id: Ib8ff5def9ccde2cd579df1281a02ac2095085171
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions