Lines Matching refs:flowlabel
53 static void do_send(int fd, bool with_flowlabel, uint32_t flowlabel)
55 char control[CMSG_SPACE(sizeof(flowlabel))] = {0};
78 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel));
81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel);
92 fprintf(stderr, "sent with label %u\n", flowlabel);
104 uint32_t flowlabel;
140 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm));
141 fprintf(stderr, "recv with label %u\n", flowlabel);
143 if (expect != FLOWLABEL_WILDCARD && expect != flowlabel) {
144 fprintf(stderr, "recv: incorrect flowlabel %u != %u\n",
145 flowlabel, expect);
146 error(1, 0, "recv: flowlabel is wrong");
189 error(1, errno, "setsockopt flowlabel get");
247 fprintf(stderr, "send no label: recv auto flowlabel\n");