diff options
| author | Nucca Chen <nuccachen@google.com> | 2018-12-17 19:52:40 -0800 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2018-12-17 19:52:40 -0800 |
| commit | 97de461dcb76d6ddb51cc0e8863e9bcc5a537711 (patch) | |
| tree | d328d4b2d4ee36c61a4cf8292c67aca2ec6830bb /core/java/android | |
| parent | 2296036a400e77572c0e346db1f499438d5196d5 (diff) | |
| parent | dba2101a3cf4526c0b963fab7062718a96c4b4e9 (diff) | |
Merge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1
am: dba2101a3c
Change-Id: I4e263d78c48a07fbcbfddc63e118c45b4cfb9c5a
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/net/INetdEventCallback.aidl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/net/INetdEventCallback.aidl b/core/java/android/net/INetdEventCallback.aidl index 4b1a08ded9d6..0877a1a47e2b 100644 --- a/core/java/android/net/INetdEventCallback.aidl +++ b/core/java/android/net/INetdEventCallback.aidl @@ -45,6 +45,20 @@ oneway interface INetdEventCallback { in String[] ipAddresses, int ipAddressesCount, long timestamp, int uid); /** + * Represents adding or removing a NAT64 prefix. + * This method must not block or perform long-running operations. + * + * @param netId the ID of the network the prefix was performed on. + * @param added true if the NAT64 prefix was added, or false if the NAT64 prefix was removed. + * There is only one prefix at a time for each netId. If a prefix is added, it replaces + * the previous-added prefix. + * @param prefixString the detected NAT64 prefix as a string literal. + * @param prefixLength the prefix length associated with this NAT64 prefix. + */ + void onNat64PrefixEvent(int netId, boolean added, @utf8InCpp String prefixString, + int prefixLength); + + /** * Represents a private DNS validation success or failure. * This method must not block or perform long-running operations. * |
