Home
last modified time | relevance | path

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

/system/netd/client/
DFwmarkClient.cpp79 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in send() local
80 cmsgh->cmsg_len = CMSG_LEN(sizeof(fd)); in send()
81 cmsgh->cmsg_level = SOL_SOCKET; in send()
82 cmsgh->cmsg_type = SCM_RIGHTS; in send()
83 memcpy(CMSG_DATA(cmsgh), &fd, sizeof(fd)); in send()
/system/netd/server/
DFwmarkServer.cpp87 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in processClient() local
88 if (cmsgh && cmsgh->cmsg_level == SOL_SOCKET && cmsgh->cmsg_type == SCM_RIGHTS && in processClient()
89 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient()
90 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient()