Home
last modified time | relevance | path

Searched refs:cmsg (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_util.cc83 struct cmsghdr* cmsg; in sock_send_fd() local
91 cmsg = CMSG_FIRSTHDR(&msg); in sock_send_fd()
92 cmsg->cmsg_level = SOL_SOCKET; in sock_send_fd()
93 cmsg->cmsg_type = SCM_RIGHTS; in sock_send_fd()
94 cmsg->cmsg_len = CMSG_LEN(sizeof send_fd); in sock_send_fd()
95 memcpy(CMSG_DATA(cmsg), &send_fd, sizeof send_fd); in sock_send_fd()
/packages/modules/StatsD/statsd/src/socket/
DStatsSocketListener.cpp90 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in onDataAvailable() local
91 while (cmsg != NULL) { in onDataAvailable()
92 if (cmsg->cmsg_level == SOL_SOCKET && cmsg->cmsg_type == SCM_CREDENTIALS) { in onDataAvailable()
93 cred = (struct ucred*)CMSG_DATA(cmsg); in onDataAvailable()
96 cmsg = CMSG_NXTHDR(&hdr, cmsg); in onDataAvailable()
/packages/modules/Connectivity/clatd/
Dclatd.c95 for (struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(&msgh,cmsg)) { in process_packet_6_to_4() local
96 if (cmsg->cmsg_level == SOL_PACKET && cmsg->cmsg_type == PACKET_AUXDATA) { in process_packet_6_to_4()
97 struct tpacket_auxdata *aux = (struct tpacket_auxdata *)CMSG_DATA(cmsg); in process_packet_6_to_4()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/
DImsMediaSocket.cpp341 struct cmsghdr* cmsg = CMSG_FIRSTHDR(&hdr); in RetrieveOptionMsg() local
343 for (; cmsg; cmsg = CMSG_NXTHDR(&hdr, cmsg)) in RetrieveOptionMsg()
345 if (cmsg->cmsg_level == IPPROTO_IP && cmsg->cmsg_type == IP_RECVTTL) in RetrieveOptionMsg()
347 uint8_t* ttlPtr = reinterpret_cast<uint8_t*>(CMSG_DATA(cmsg)); in RetrieveOptionMsg()
/packages/modules/adb/
Dsysdeps.h231 extern adb_cmsghdr* adb_CMSG_NXTHDR(adb_msghdr* msgh, adb_cmsghdr* cmsg);
232 extern unsigned char* adb_CMSG_DATA(adb_cmsghdr* cmsg);
711 inline adb_cmsghdr* adb_CMSG_NXTHDR(adb_msghdr* msgh, adb_cmsghdr* cmsg) { in adb_CMSG_NXTHDR() argument
712 return CMSG_NXTHDR(msgh, cmsg); in adb_CMSG_NXTHDR()
715 inline unsigned char* adb_CMSG_DATA(adb_cmsghdr* cmsg) { in adb_CMSG_DATA() argument
716 return CMSG_DATA(cmsg); in adb_CMSG_DATA()
Dsysdeps_win32.cpp988 adb_cmsghdr* adb_CMSG_NXTHDR(adb_msghdr* msgh, adb_cmsghdr* cmsg) { in adb_CMSG_NXTHDR() argument
992 return WSA_CMSG_NXTHDR(&wmsg, cmsg); in adb_CMSG_NXTHDR()
995 unsigned char* adb_CMSG_DATA(adb_cmsghdr* cmsg) { in adb_CMSG_DATA() argument
996 return WSA_CMSG_DATA(cmsg); in adb_CMSG_DATA()