Home
last modified time | relevance | path

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

/packages/modules/adb/client/openscreen/platform/
Dudp_socket.cpp92 bool IsPacketInfo(adb_cmsghdr* cmh);
95 bool IsPacketInfo<in_pktinfo>(adb_cmsghdr* cmh) { in IsPacketInfo() argument
96 return cmh->cmsg_level == IPPROTO_IP && cmh->cmsg_type == IP_PKTINFO; in IsPacketInfo()
100 bool IsPacketInfo<in6_pktinfo>(adb_cmsghdr* cmh) { in IsPacketInfo() argument
101 return cmh->cmsg_level == IPPROTO_IPV6 && cmh->cmsg_type == IPV6_PKTINFO; in IsPacketInfo()
141 for (adb_cmsghdr* cmh = adb_CMSG_FIRSTHDR(&msg); cmh; cmh = adb_CMSG_NXTHDR(&msg, cmh)) { in ReceiveMessageInternal() local
142 if (IsPacketInfo<PktInfoType>(cmh)) { in ReceiveMessageInternal()
143 PktInfoType* pktinfo = reinterpret_cast<PktInfoType*>(adb_CMSG_DATA(cmh)); in ReceiveMessageInternal()