Searched refs:IP_TOS (Results 1 - 16 of 16) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_multi.c16 /* Set IP_TOS to the expected value (0x80). */
19 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
21 log_err("Failed to call setsockopt(IP_TOS)");
27 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
29 log_err("Failed to call getsockopt(IP_TOS)");
51 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
53 log_err("Failed to call getsockopt(IP_TOS)");
76 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
78 log_err("Failed to call getsockopt(IP_TOS)");
95 err = setsockopt(sock_fd, SOL_IP, IP_TOS,
[all...]
H A Dsockopt.c84 .get_optname = IP_TOS,
85 .set_optname = IP_TOS,
103 .get_optname = IP_TOS,
214 .get_optname = IP_TOS,
413 .get_optname = IP_TOS,
458 .get_optname = IP_TOS,
459 .set_optname = IP_TOS,
478 .set_optname = IP_TOS,
548 .get_optname = IP_TOS,
549 .set_optname = IP_TOS,
[all...]
H A Dsockopt_sk.c33 /* IP_TOS - BPF bypass */
43 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen);
45 log_err("Failed to call setsockopt(IP_TOS)");
51 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen);
53 log_err("Failed to call getsockopt(IP_TOS)");
58 log_err("Unexpected getsockopt(IP_TOS) optval 0x%x != 0x08",
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsockopt_multi.c16 if (ctx->level != SOL_IP || ctx->optname != IP_TOS)
45 if (ctx->level != SOL_IP || ctx->optname != IP_TOS)
74 if (ctx->level != SOL_IP || ctx->optname != IP_TOS)
H A Dsockopt_sk.c50 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) {
51 /* Not interested in SOL_IP:IP_TOS;
160 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) {
161 /* Not interested in SOL_IP:IP_TOS;
H A Dbpf_tracing_net.h23 #define IP_TOS 1 macro
H A Dsetget_sockopt.c69 { .opt = IP_TOS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
/linux-master/samples/bpf/
H A Dtcp_tos_reflect_kern.c57 bpf_setsockopt(skops, SOL_IP, IP_TOS,
/linux-master/include/uapi/linux/
H A Din.h97 #define IP_TOS 1 macro
/linux-master/tools/include/uapi/linux/
H A Din.h97 #define IP_TOS 1 macro
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_sockopt.c726 r = setsockopt(fd, SOL_IP, IP_TOS, &tos_in, sizeof(tos_out));
728 die_perror("setsockopt IP_TOS");
732 r = getsockopt(fd, SOL_IP, IP_TOS, &tos_out, &s);
734 die_perror("getsockopt IP_TOS");
743 r = getsockopt(fd, SOL_IP, IP_TOS, &tos_out, &s);
745 die_perror("getsockopt IP_TOS 0");
750 r = getsockopt(fd, SOL_IP, IP_TOS, &tos_out, &s);
752 die_perror("getsockopt IP_TOS did not indicate -EINVAL");
/linux-master/net/ipv4/
H A Dip_sockglue.c71 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos);
308 case IP_TOS:
906 case IP_TOS:
1057 case IP_TOS: /* This sets both TOS and Precedence */
1599 case IP_TOS:
1676 put_cmsg(&msg, SOL_IP, IP_TOS, sizeof(tos), &tos);
/linux-master/net/mptcp/
H A Dsockopt.c458 case IP_TOS:
749 case IP_TOS:
1355 case IP_TOS:
/linux-master/tools/testing/selftests/net/
H A Dnettest.c593 if (setsockopt(sd, SOL_IP, IP_TOS, &dsfield,
595 log_err_errno("setsockopt(IP_TOS)");
1969 " -Q dsfield DS Field value of the socket (the IP_TOS or\n"
/linux-master/drivers/net/ethernet/sfc/
H A Dmae.c687 CHECK(IP_TOS, ip_tos) ||
/linux-master/net/core/
H A Dfilter.c5364 case IP_TOS:

Completed in 248 milliseconds