/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_multi.c | 19 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 27 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 51 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 76 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 95 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 103 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 119 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 131 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 139 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 170 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_setsockopt_test() [all …]
|
D | sockopt.c | 79 .get_level = SOL_IP, 80 .set_level = SOL_IP, 100 .get_level = SOL_IP, 211 .get_level = SOL_IP, 404 .get_level = SOL_IP, 447 .get_level = SOL_IP, 448 .set_level = SOL_IP, 469 .set_level = SOL_IP, 526 BPF_MOV64_IMM(BPF_REG_0, SOL_IP), 536 .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 | test_ldsx_insn.c | 82 (void)getsockopt(fd, SOL_IP, IP_TTL, buf, &optlen); in test_ctx_member_sign_ext()
|
D | sk_lookup.c | 158 err = setsockopt(fd, SOL_IP, IP_RECVORIGDSTADDR, &one, in make_server() 389 if ((cm->cmsg_level == SOL_IP && in udp_recv_send()
|
/Linux-v6.6/tools/testing/selftests/net/ |
D | ip_local_port_range.c | 107 err = getsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &val, &len); in get_ip_local_port_range() 179 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &val16, sizeof(val16)); in TEST_F() 185 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &val32, sizeof(val32)); in TEST_F() 191 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &val64, sizeof(val64)); in TEST_F() 228 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &range, sizeof(range)); in TEST_F() 274 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &range, sizeof(range)); in TEST_F() 301 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &range, sizeof(range)); in TEST_F() 323 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &range, sizeof(range)); in TEST_F() 359 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &range, sizeof(range)); in TEST_F() 362 err = setsockopt(fd, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)); in TEST_F() [all …]
|
D | nettest.c | 426 rc = setsockopt(sd, SOL_IP, IP_PKTINFO, &one, sizeof(one)); in set_pktinfo_v4() 450 rc = setsockopt(sd, SOL_IP, IP_RECVERR, &one, sizeof(one)); in set_recverr_v4() 472 int level = SOL_IP; in set_unicast_if() 493 rc = setsockopt(sd, SOL_IP, IP_MULTICAST_IF, &mreq, sizeof(mreq)); in set_multicast_if() 531 if (setsockopt(sd, SOL_IP, IP_FREEBIND, &one, sizeof(one))) { in set_freebind() 593 if (setsockopt(sd, SOL_IP, IP_TOS, &dsfield, in set_dsfield() 916 if (cm->cmsg_level == SOL_IP && in get_index_from_cmsg() 984 cm->cmsg_level = SOL_IP; in send_msg_cmsg() 1457 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 | cmsg_sender.c | 362 if ((cmsg->cmsg_level == SOL_IP && in cs_read_cmsg()
|
/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | sockopt_multi.c | 16 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_child() 45 if (ctx->level != SOL_IP || ctx->optname != IP_TOS) in _getsockopt_parent() 74 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() 160 if (ctx->level == SOL_IP && ctx->optname == IP_TOS) { in _setsockopt() 193 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { in _setsockopt()
|
/Linux-v6.6/arch/um/drivers/ |
D | umcast_user.c | 96 if (setsockopt(fd, SOL_IP, IP_MULTICAST_TTL, &pri->ttl, in umcast_open() 105 if (setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, in umcast_open() 126 if (setsockopt(fd, SOL_IP, IP_ADD_MEMBERSHIP, in umcast_open() 158 if (setsockopt(fd, SOL_IP, IP_DROP_MEMBERSHIP, in umcast_close()
|
/Linux-v6.6/net/ipv4/ |
D | ip_sockglue.c | 62 put_cmsg(msg, SOL_IP, IP_PKTINFO, sizeof(info), &info); in ip_cmsg_recv_pktinfo() 68 put_cmsg(msg, SOL_IP, IP_TTL, sizeof(int), &ttl); in ip_cmsg_recv_ttl() 73 put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos); in ip_cmsg_recv_tos() 81 put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, in ip_cmsg_recv_opts() 101 put_cmsg(msg, SOL_IP, IP_RETOPTS, opt->optlen, opt->__data); in ip_cmsg_recv_retopts() 112 put_cmsg(msg, SOL_IP, IP_RECVFRAGSIZE, sizeof(val), &val); in ip_cmsg_recv_fragsize() 128 put_cmsg(msg, SOL_IP, IP_CHECKSUM, sizeof(__wsum), &csum); in ip_cmsg_recv_checksum() 145 put_cmsg(msg, SOL_IP, SCM_SECURITY, seclen, secdata); in ip_cmsg_recv_security() 168 put_cmsg(msg, SOL_IP, IP_ORIGDSTADDR, sizeof(sin), &sin); in ip_cmsg_recv_dstaddr() 278 if (cmsg->cmsg_level != SOL_IP) in ip_cmsg_send() [all …]
|
/Linux-v6.6/Documentation/networking/ |
D | tproxy.rst | 38 addresses. All you have to do is enable the (SOL_IP, IP_TRANSPARENT) socket 44 setsockopt(fd, SOL_IP, IP_TRANSPARENT, &value, sizeof(value)); 76 Note that for this to work you'll have to modify the proxy to enable (SOL_IP,
|
/Linux-v6.6/samples/bpf/ |
D | tcp_tos_reflect_kern.c | 57 bpf_setsockopt(skops, SOL_IP, IP_TOS, in bpf_basertt()
|
/Linux-v6.6/tools/testing/selftests/net/mptcp/ |
D | mptcp_sockopt.c | 726 r = setsockopt(fd, SOL_IP, IP_TOS, &tos_in, sizeof(tos_out)); in test_ip_tos_sockopt() 732 r = getsockopt(fd, SOL_IP, IP_TOS, &tos_out, &s); in test_ip_tos_sockopt() 743 r = getsockopt(fd, SOL_IP, IP_TOS, &tos_out, &s); in test_ip_tos_sockopt() 750 r = getsockopt(fd, SOL_IP, IP_TOS, &tos_out, &s); in test_ip_tos_sockopt()
|
/Linux-v6.6/Documentation/bpf/ |
D | prog_cgroup_sockopt.rst | 124 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) { 149 if (ctx->level == SOL_IP && ctx->optname == IP_FREEBIND) {
|
/Linux-v6.6/net/mptcp/ |
D | sockopt.c | 437 if (level == SOL_IP) { in mptcp_supported_sockopt() 692 err = ip_setsockopt(sk, SOL_IP, optname, optval, optlen); in mptcp_setsockopt_sol_ip_set_transparent() 730 err = ip_setsockopt(sk, SOL_IP, optname, optval, optlen); in mptcp_setsockopt_v4_set_tos() 851 if (level == SOL_IP) in mptcp_setsockopt() 1389 if (level == SOL_IP) in mptcp_getsockopt()
|
/Linux-v6.6/include/linux/ |
D | socket.h | 346 #define SOL_IP 0 macro
|
/Linux-v6.6/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 346 #define SOL_IP 0 macro
|
/Linux-v6.6/net/ipv6/ |
D | ipv6_sockglue.c | 1006 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 1484 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
|