Home
last modified time | relevance | path

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

/system/netd/client/
DFwmarkClient.cpp98 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in send() local
99 cmsgh->cmsg_len = CMSG_LEN(sizeof(fd)); in send()
100 cmsgh->cmsg_level = SOL_SOCKET; in send()
101 cmsgh->cmsg_type = SCM_RIGHTS; in send()
102 memcpy(CMSG_DATA(cmsgh), &fd, sizeof(fd)); in send()
/system/netd/server/
DFwmarkServer.cpp100 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in processClient() local
101 if (cmsgh && cmsgh->cmsg_level == SOL_SOCKET && cmsgh->cmsg_type == SCM_RIGHTS && in processClient()
102 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient()
103 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient()