Home
last modified time | relevance | path

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

/system/netd/client/
DFwmarkClient.cpp110 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in send() local
111 cmsgh->cmsg_len = CMSG_LEN(sizeof(fd)); in send()
112 cmsgh->cmsg_level = SOL_SOCKET; in send()
113 cmsgh->cmsg_type = SCM_RIGHTS; in send()
114 memcpy(CMSG_DATA(cmsgh), &fd, sizeof(fd)); in send()
/system/netd/server/
DFwmarkServer.cpp134 cmsghdr* const cmsgh = CMSG_FIRSTHDR(&message); in processClient() local
135 if (cmsgh && cmsgh->cmsg_level == SOL_SOCKET && cmsgh->cmsg_type == SCM_RIGHTS && in processClient()
136 cmsgh->cmsg_len == CMSG_LEN(sizeof(*socketFd))) { in processClient()
137 memcpy(socketFd, CMSG_DATA(cmsgh), sizeof(*socketFd)); in processClient()