Searched refs:cmsg (Results 1 – 2 of 2) sorted by relevance
71 struct cmsghdr *cmsg; in tuntap_open_tramp() local111 cmsg = CMSG_FIRSTHDR(&msg); in tuntap_open_tramp()112 if (cmsg == NULL) { in tuntap_open_tramp()117 if ((cmsg->cmsg_level != SOL_SOCKET) || in tuntap_open_tramp()118 (cmsg->cmsg_type != SCM_RIGHTS)) { in tuntap_open_tramp()123 *fd_out = ((int *) CMSG_DATA(cmsg))[0]; in tuntap_open_tramp()
484 struct cmsghdr *cmsg; in os_rcv_fd() local503 cmsg = CMSG_FIRSTHDR(&msg); in os_rcv_fd()504 if (cmsg == NULL) { in os_rcv_fd()509 if ((cmsg->cmsg_level != SOL_SOCKET) || in os_rcv_fd()510 (cmsg->cmsg_type != SCM_RIGHTS)) { in os_rcv_fd()515 new = ((int *) CMSG_DATA(cmsg))[0]; in os_rcv_fd()