Home
last modified time | relevance | path

Searched refs:SOL_IP (Results 1 – 15 of 15) 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 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 …]
Dsockopt.c74 .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 …]
Dsockopt_sk.c43 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()
Dsk_lookup.c159 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/
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.c50 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/
Dnettest.c419 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()
Dtxtimestamp.c321 } 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()
Dudpgso.c324 level = SOL_IP; in set_pmtu_discover()
345 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu()
Dudpgso_bench_tx.c159 case SOL_IP: in flush_cmsg()
555 level = SOL_IP; in set_pmtu_discover()
Dso_txtime.c448 cfg_errq_level = SOL_IP; in parse_opts()
Dtimestamping.c465 if (setsockopt(sock, SOL_IP, IP_PKTINFO, in main()
Dmsg_zerocopy.c418 if (!((cm->cmsg_level == SOL_IP && cm->cmsg_type == IP_RECVERR) || in do_recv_completion()
/tools/perf/trace/beauty/include/linux/
Dsocket.h330 #define SOL_IP 0 macro
/tools/testing/selftests/bpf/
Dtest_sock_addr.c1001 cmsg->cmsg_level = SOL_IP; in init_pktinfo()