Yan Yan | 1111180 | 2022-12-16 02:17:07 +0000 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2022, The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.net; |
| 18 | |
| 19 | @JavaOnlyImmutable |
| 20 | parcelable IpSecMigrateInfoParcel { |
| 21 | /** The unique identifier for allocated resources. */ |
| 22 | int requestId; |
| 23 | /** |
| 24 | * The address family identifier for the new selector. Can be AF_INET |
| 25 | * or AF_INET6. |
| 26 | */ |
| 27 | int selAddrFamily; |
| 28 | /** IPSEC_DIRECTION_IN or IPSEC_DIRECTION_OUT. */ |
| 29 | int direction; |
| 30 | /** |
| 31 | * The IP address for the current sending endpoint. |
| 32 | * |
| 33 | * The local address for an outbound SA and the remote address for an |
| 34 | * inbound SA. |
| 35 | */ |
| 36 | @utf8InCpp String oldSourceAddress; |
| 37 | /** |
| 38 | * The IP address for the current receiving endpoint. |
| 39 | * |
| 40 | * The remote address for an outbound SA and the local address for an |
| 41 | * inbound SA. |
| 42 | */ |
| 43 | @utf8InCpp String oldDestinationAddress; |
| 44 | /** The IP address for the new sending endpoint. */ |
| 45 | @utf8InCpp String newSourceAddress; |
| 46 | /** The IP address for the new receiving endpoint. */ |
| 47 | @utf8InCpp String newDestinationAddress; |
| 48 | /** The identifier for the XFRM interface. */ |
| 49 | int interfaceId; |
| 50 | } |