summaryrefslogtreecommitdiff
path: root/native/android/net.c
diff options
context:
space:
mode:
author Ken Chen <cken@google.com> 2022-03-31 00:02:39 +0800
committer Ken Chen <cken@google.com> 2022-03-31 00:28:15 +0800
commit9c315eb11fbdcaf3d3d3676ab310c6d64d9fa2c0 (patch)
tree31f7731b7e0b66d4ea4683031ead1304b4dac4e1 /native/android/net.c
parent2e6b40a8839a470cc6e69e8efee4ec16fe61acac (diff)
Update data type and comments on tagSocket/untagSocket APIs
- Fix comment in version script to say LL-NDK, not NDK - Use uint32_t for tag Bug: 223423155 Test: CtsNetTestCases:android.net.TrafficStatsTest Test: CtsNativeNetPlatformTestCases Change-Id: Ifb819ed0adeb8f173b98c3f131a4bf2e0715dd4e
Diffstat (limited to 'native/android/net.c')
-rw-r--r--native/android/net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/android/net.c b/native/android/net.c
index d7c22e1a5741..74db1845080b 100644
--- a/native/android/net.c
+++ b/native/android/net.c
@@ -162,11 +162,11 @@ void android_res_cancel(int nsend_fd) {
resNetworkCancel(nsend_fd);
}
-int android_tag_socket_with_uid(int sockfd, int tag, uid_t uid) {
+int android_tag_socket_with_uid(int sockfd, uint32_t tag, uid_t uid) {
return tagSocket(sockfd, tag, uid);
}
-int android_tag_socket(int sockfd, int tag) {
+int android_tag_socket(int sockfd, uint32_t tag) {
return tagSocket(sockfd, tag, -1);
}