Home
last modified time | relevance | path

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

/device/generic/goldfish/wifi/ipv6proxy/
Dsocket.cpp240 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&messageHeader); in sendFrom() local
241 controlHeader->cmsg_level = IPPROTO_IPV6; in sendFrom()
242 controlHeader->cmsg_type = IPV6_PKTINFO; in sendFrom()
243 controlHeader->cmsg_len = CMSG_LEN(sizeof(struct in6_pktinfo)); in sendFrom()
245 auto packetInfoData = CMSG_DATA(controlHeader); in sendFrom()
/device/generic/goldfish/dhcp/common/
Dsocket.cpp150 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&header); in sendOnInterface() local
151 controlHeader->cmsg_level = IPPROTO_IP; in sendOnInterface()
152 controlHeader->cmsg_type = IP_PKTINFO; in sendOnInterface()
153 controlHeader->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in sendOnInterface()
155 reinterpret_cast<struct in_pktinfo*>(CMSG_DATA(controlHeader)); in sendOnInterface()