Lines Matching refs:Raw
59 message.Raw()->cmsg_len = CMSG_LEN(fds.size() * sizeof(int)); in FromFileDescriptors()
60 message.Raw()->cmsg_level = SOL_SOCKET; in FromFileDescriptors()
61 message.Raw()->cmsg_type = SCM_RIGHTS; in FromFileDescriptors()
67 memcpy(CMSG_DATA(message.Raw()) + (i * sizeof(int)), &fd_copy, sizeof(int)); in FromFileDescriptors()
76 message.Raw()->cmsg_len = CMSG_LEN(sizeof(ucred)); in FromCredentials()
77 message.Raw()->cmsg_level = SOL_SOCKET; in FromCredentials()
78 message.Raw()->cmsg_type = SCM_CREDENTIALS; in FromCredentials()
80 memcpy(CMSG_DATA(message.Raw()), &credentials, sizeof(credentials)); in FromCredentials()
113 cmsghdr* ControlMessage::Raw() { in Raw() function in cuttlefish::ControlMessage
117 const cmsghdr* ControlMessage::Raw() const { in Raw() function in cuttlefish::ControlMessage
123 bool right_level = Raw()->cmsg_level == SOL_SOCKET; in IsCredentials()
124 bool right_type = Raw()->cmsg_type == SCM_CREDENTIALS; in IsCredentials()
125 bool enough_data = Raw()->cmsg_len >= sizeof(cmsghdr) + sizeof(ucred); in IsCredentials()
132 memcpy(&credentials, CMSG_DATA(Raw()), sizeof(ucred)); in AsCredentials()
138 bool right_level = Raw()->cmsg_level == SOL_SOCKET; in IsFileDescriptors()
139 bool right_type = Raw()->cmsg_type == SCM_RIGHTS; in IsFileDescriptors()
146 static_cast<size_t>(Raw()->cmsg_len - CMSG_LEN(0)) / sizeof(int); in AsSharedFDs()
151 memcpy(&fd, CMSG_DATA(Raw()) + (i * sizeof(int)), sizeof(fd)); in AsSharedFDs()