Lines Matching refs:flowlabel
38 static void do_send(int fd, bool with_flowlabel, uint32_t flowlabel)
40 char control[CMSG_SPACE(sizeof(flowlabel))] = {0};
55 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel));
58 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel);
69 fprintf(stderr, "sent with label %u\n", flowlabel);
81 uint32_t flowlabel;
114 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm));
115 fprintf(stderr, "recv with label %u\n", flowlabel);
117 if (expect != FLOWLABEL_WILDCARD && expect != flowlabel)
118 fprintf(stderr, "recv: incorrect flowlabel %u != %u\n",
119 flowlabel, expect);
161 error(1, errno, "setsockopt flowlabel get");
210 fprintf(stderr, "send no label: recv auto flowlabel\n");