Searched refs:controlHeader (Results 1 – 2 of 2) sorted by relevance
240 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&messageHeader); in sendFrom() local241 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()
150 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&header); in sendOnInterface() local151 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()