[API] Expose IpSecTunnelInterface#setUnderlyingNetwork

This API is required to perform MOBIKE. This API allows an IPsec
peer to change the underlying network of its established IPsec
tunnel without re-establishing the tunnel.

Bug: 169855650
Test: atest IpSecManagerTunnelTest (new tests added)
Change-Id: Ifc8ad902cbfbe4ad07e715f2fef0faa1bf9d68f3
This commit is contained in:
Yan Yan
2020-10-07 18:48:57 -07:00
parent a2f3b49f10
commit 441e35f612

View File

@@ -801,7 +801,6 @@ public final class IpSecManager {
* @param underlyingNetwork the new {@link Network} that will carry traffic for this tunnel. * @param underlyingNetwork the new {@link Network} that will carry traffic for this tunnel.
* This network MUST never be the network exposing this IpSecTunnelInterface, otherwise * This network MUST never be the network exposing this IpSecTunnelInterface, otherwise
* this method will throw an {@link IllegalArgumentException}. * this method will throw an {@link IllegalArgumentException}.
* @hide
*/ */
// TODO: b/169171001 Update the documentation when transform migration is supported. // TODO: b/169171001 Update the documentation when transform migration is supported.
// The purpose of making updating network and applying transforms separate is to leave open // The purpose of making updating network and applying transforms separate is to leave open