summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorAndroid Build Merger (Role) <noreply-android-build-merger@google.com>2018-12-18 04:28:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-12-18 04:28:19 +0000
commit2ea0a750b6d522c669110e43ff91bfee7f5081dc (patch)
treefc07558feabcdd5745c1f3d0f52dbceda3fb6933 /core/java/android
parent8af36f78bee271df41d0b41b97cb9d7862a7a300 (diff)
parent7a4f27a7e0cd3764c74824634d2aaad3f0057ad3 (diff)
Merge "Merge "Add new netd event callback for changes to NAT64 prefix" am: ed30ec8dd1 am: dba2101a3c am: 97de461dcb"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/net/INetdEventCallback.aidl14
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.
*