Home
last modified time | relevance | path

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

/system/bpf/libbpf_android/
DBpfUtils.cpp51 uint64_t sock_cookie; in getSocketCookie() local
52 socklen_t cookie_len = sizeof(sock_cookie); in getSocketCookie()
53 int res = getsockopt(sockFd, SOL_SOCKET, SO_COOKIE, &sock_cookie, &cookie_len); in getSocketCookie()
61 return sock_cookie; in getSocketCookie()
/system/netd/server/
DTrafficController.cpp288 uint64_t sock_cookie = static_cast<uint64_t>(diagmsg.id.idiag_cookie[0]) | in start() local
291 Status s = mCookieTagMap.deleteValue(sock_cookie); in start()
293 ALOGE("Failed to delete cookie %" PRIx64 ": %s", sock_cookie, toString(s).c_str()); in start()
322 uint64_t sock_cookie = getSocketCookie(sockFd); in tagSocket() local
323 if (sock_cookie == NONEXISTENT_COOKIE) return -errno; in tagSocket()
374 res = mCookieTagMap.writeValue(sock_cookie, newKey, BPF_ANY); in tagSocket()
389 uint64_t sock_cookie = getSocketCookie(sockFd); in untagSocket() local
391 if (sock_cookie == NONEXISTENT_COOKIE) return -errno; in untagSocket()
392 base::Result<void> res = mCookieTagMap.deleteValue(sock_cookie); in untagSocket()