/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 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 149 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 168 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 180 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 188 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 217 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test() [all …]
|
D | sockopt.c | 74 .get_level = SOL_IP, 75 .set_level = SOL_IP, 95 .get_level = SOL_IP, 206 .get_level = SOL_IP, 376 .get_level = SOL_IP, 419 .get_level = SOL_IP, 420 .set_level = SOL_IP, 441 .set_level = SOL_IP, 498 BPF_MOV64_IMM(BPF_REG_0, SOL_IP), 508 .get_level = SOL_IP, [all …]
|
D | sockopt_sk.c | 43 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen); in getsetsockopt() 51 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); in getsetsockopt() 66 err = setsockopt(fd, SOL_IP, IP_TTL, &buf, 1); in getsetsockopt() 103 err = setsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, optlen); in getsetsockopt() 109 err = getsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, &optlen); in getsetsockopt()
|
D | sk_lookup.c | 159 err = setsockopt(fd, SOL_IP, IP_RECVORIGDSTADDR, &one, in make_server() 390 if ((cm->cmsg_level == SOL_IP && in udp_recv_send()
|
/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 | 50 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _getsockopt() 90 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _getsockopt() 154 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt() 187 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
|
/tools/testing/selftests/net/ |
D | nettest.c | 419 rc = setsockopt(sd, SOL_IP, IP_PKTINFO, &one, sizeof(one)); in set_pktinfo_v4() 443 rc = setsockopt(sd, SOL_IP, IP_RECVERR, &one, sizeof(one)); in set_recverr_v4() 465 int level = SOL_IP; in set_unicast_if() 486 rc = setsockopt(sd, SOL_IP, IP_MULTICAST_IF, &mreq, sizeof(mreq)); in set_multicast_if() 844 if (cm->cmsg_level == SOL_IP && in get_index_from_cmsg() 912 cm->cmsg_level = SOL_IP; in send_msg_cmsg() 1369 int level = SOL_IP; in config_xfrm_policy()
|
D | txtimestamp.c | 321 } else if ((cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg() 335 } else if (cm->cmsg_level == SOL_IP && in __recv_errmsg_cmsg() 557 if (setsockopt(fd, SOL_IP, IP_PKTINFO, in do_test()
|
D | udpgso.c | 324 level = SOL_IP; in set_pmtu_discover() 345 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu()
|
D | udpgso_bench_tx.c | 159 case SOL_IP: in flush_cmsg() 555 level = SOL_IP; in set_pmtu_discover()
|
D | so_txtime.c | 448 cfg_errq_level = SOL_IP; in parse_opts()
|
D | timestamping.c | 465 if (setsockopt(sock, SOL_IP, IP_PKTINFO, in main()
|
D | msg_zerocopy.c | 418 if (!((cm->cmsg_level == SOL_IP && cm->cmsg_type == IP_RECVERR) || in do_recv_completion()
|
/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 330 #define SOL_IP 0 macro
|
/tools/testing/selftests/bpf/ |
D | test_sock_addr.c | 1001 cmsg->cmsg_level = SOL_IP; in init_pktinfo()
|