Home
last modified time | relevance | path

Searched refs:sock_cookie (Results 1 – 2 of 2) sorted by relevance

/system/bpf/libbpf_android/
DBpfUtils.cpp50 uint64_t sock_cookie; in getSocketCookie() local
51 socklen_t cookie_len = sizeof(sock_cookie); in getSocketCookie()
52 int res = getsockopt(sockFd, SOL_SOCKET, SO_COOKIE, &sock_cookie, &cookie_len); in getSocketCookie()
60 return sock_cookie; in getSocketCookie()
/system/netd/server/
DTrafficController.cpp285 uint64_t sock_cookie = static_cast<uint64_t>(diagmsg.id.idiag_cookie[0]) | in start() local
288 Status s = mCookieTagMap.deleteValue(sock_cookie); in start()
290 ALOGE("Failed to delete cookie %" PRIx64 ": %s", sock_cookie, toString(s).c_str()); in start()
314 uint64_t sock_cookie = getSocketCookie(sockFd); in tagSocket() local
315 if (sock_cookie == NONEXISTENT_COOKIE) return -errno; in tagSocket()
366 res = mCookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in tagSocket()
377 uint64_t sock_cookie = getSocketCookie(sockFd); in untagSocket() local
379 if (sock_cookie == NONEXISTENT_COOKIE) return -errno; in untagSocket()
380 base::Result<void> res = mCookieTagMap.deleteValue(sock_cookie); in untagSocket()