Lines Matching refs:cm
75 struct cmsghdr *cm; in do_send() local
77 cm = (void *)control; in do_send()
78 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel)); in do_send()
79 cm->cmsg_level = SOL_IPV6; in do_send()
80 cm->cmsg_type = IPV6_FLOWINFO; in do_send()
81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send()
103 struct cmsghdr *cm; in do_recv() local
130 cm = CMSG_FIRSTHDR(&msg); in do_recv()
132 if (!cm) in do_recv()
134 if (CMSG_NXTHDR(&msg, cm)) in do_recv()
136 if (cm->cmsg_level != SOL_IPV6 || in do_recv()
137 cm->cmsg_type != IPV6_FLOWINFO) in do_recv()
140 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm)); in do_recv()