Home
last modified time | relevance | path

Searched refs:IP_TOS (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dsockopt_multi.c67 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test()
75 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
98 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
122 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
141 if (setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1) < 0) { in run_getsockopt_test()
148 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
167 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
179 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test()
187 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test()
216 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test()
[all …]
Dsockopt.c77 .get_optname = IP_TOS,
78 .set_optname = IP_TOS,
96 .get_optname = IP_TOS,
207 .get_optname = IP_TOS,
377 .get_optname = IP_TOS,
422 .get_optname = IP_TOS,
423 .set_optname = IP_TOS,
442 .set_optname = IP_TOS,
511 .get_optname = IP_TOS,
512 .set_optname = IP_TOS,
[all …]
Dsockopt_sk.c26 err = setsockopt(fd, SOL_IP, IP_TOS, &buf, 1); in getsetsockopt()
34 err = getsockopt(fd, SOL_IP, IP_TOS, &buf, &optlen); in getsetsockopt()
/tools/testing/selftests/bpf/progs/
Dsockopt_multi.c15 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child()
38 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent()
61 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _setsockopt()
Dsockopt_sk.c32 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) in _getsockopt()
85 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) in _setsockopt()
/tools/include/uapi/linux/
Din.h90 #define IP_TOS 1 macro