Searched refs:IP_TOS (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_multi.c | 67 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 …]
|
D | sockopt.c | 77 .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 …]
|
D | sockopt_sk.c | 26 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/ |
D | sockopt_multi.c | 15 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()
|
D | sockopt_sk.c | 32 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/ |
D | in.h | 90 #define IP_TOS 1 macro
|