/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_multi.c | 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() 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() 139 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 178 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_setsockopt_test() 206 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_setsockopt_test() 234 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_setsockopt_test()
|
D | sockopt_sk.c | 51 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); in getsetsockopt() 83 err = getsockopt(fd, SOL_CUSTOM, 0, &buf, &optlen); in getsetsockopt() 109 err = getsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, &optlen); in getsetsockopt() 131 err = getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buf, &optlen); in getsetsockopt() 154 err = getsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, &optlen); in getsetsockopt() 169 err = getsockopt(fd, SOL_TCP, TCP_ZEROCOPY_RECEIVE, &buf, &optlen); in getsetsockopt() 180 err = getsockopt(fd, SOL_TCP, TCP_ZEROCOPY_RECEIVE, &buf, &optlen); in getsetsockopt() 206 err = getsockopt(fd, SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS, NULL, &optlen); in getsetsockopt()
|
D | lsm_cgroup.c | 193 ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional() 229 ASSERT_GE(getsockopt(accepted_fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional() 284 ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional()
|
D | sk_storage_omem_uncharge.c | 28 err = getsockopt(sk_fd, SOL_SOCKET, SO_COOKIE, &skel->bss->cookie, &optlen); in test_sk_storage_omem_uncharge()
|
D | sockopt_qos_to_cc.c | 21 err = getsockopt(sock_fd, SOL_TCP, TCP_CONGESTION, cc, &optlen); in run_setsockopt_test()
|
D | mptcp.c | 254 if (!ASSERT_OK(getsockopt(server_fd, SOL_SOCKET, SO_PROTOCOL, &protocol, &optlen), in verify_mptcpify() 262 if (!ASSERT_OK(getsockopt(client_fd, SOL_MPTCP, MPTCP_INFO, &info, &optlen), in verify_mptcpify()
|
D | cgroup_getset_retval.c | 346 if (!ASSERT_ERR(getsockopt(sock_fd, SOL_CUSTOM, 0, in test_getsockopt_get() 388 if (!ASSERT_ERR(getsockopt(sock_fd, SOL_CUSTOM, 0, in test_getsockopt_override() 436 if (!ASSERT_OK(getsockopt(sock_fd, SOL_CUSTOM, 0, in test_getsockopt_retval_sync()
|
D | netns_cookie.c | 58 err = getsockopt(client_fd, SOL_SOCKET, SO_NETNS_COOKIE, in test_netns_cookie()
|
D | bpf_iter_setsockopt_unix.c | 56 err = getsockopt(fd, SOL_SOCKET, SO_SNDBUF, in test_sndbuf()
|
D | test_ldsx_insn.c | 82 (void)getsockopt(fd, SOL_IP, IP_TTL, buf, &optlen); in test_ctx_member_sign_ext()
|
D | sockmap_helpers.h | 90 int __ret = getsockopt((fd), (level), (name), (val), (len)); \ 220 if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &eval, &esize) < 0) in poll_connect()
|
/linux-6.12.1/tools/testing/selftests/net/mptcp/ |
D | mptcp_sockopt.c | 288 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 294 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 304 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 311 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 317 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 325 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &olen); in do_getsockopt_bogus_sf_data() 339 ret = getsockopt(fd, SOL_MPTCP, optname, &bd, &_olen); in do_getsockopt_bogus_sf_data() 356 ret = getsockopt(fd, SOL_MPTCP, MPTCP_INFO, &i, &olen); in do_getsockopt_mptcp_info() 388 ret = getsockopt(fd, SOL_MPTCP, MPTCP_TCPINFO, &ti, &olen); in do_getsockopt_tcp_info() 443 ret = getsockopt(fd, SOL_MPTCP, MPTCP_SUBFLOW_ADDRS, &addrs, &olen); in do_getsockopt_subflow_addrs() [all …]
|
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/ |
D | repair.c | 52 ret = getsockopt(sk, SOL_TCP, TCP_QUEUE_SEQ, &q->seq, &len); in test_sock_checkpoint_queue() 77 ret = getsockopt(sk, SOL_TCP, TCP_INFO, &state->info, &len); in __test_sock_checkpoint() 86 ret = getsockopt(sk, SOL_TCP, TCP_REPAIR_WINDOW, &state->trw, &len); in __test_sock_checkpoint() 105 ret = getsockopt(sk, SOL_TCP, TCP_MAXSEG, &state->mss, &len); in __test_sock_checkpoint() 110 ret = getsockopt(sk, SOL_TCP, TCP_TIMESTAMP, &state->timestamp, &len); in __test_sock_checkpoint() 122 ret = getsockopt(sk, SOL_TCP, TCP_AO_REPAIR, state, &len); in test_ao_checkpoint()
|
D | sock.c | 65 if (getsockopt(sk, SOL_SOCKET, SO_ERROR, &ret, &slen)) in test_wait_fd() 176 ret = getsockopt(sk, IPPROTO_TCP, TCP_AO_GET_KEYS, &tmp, &tmp_sz); in test_get_ao_keys_nr() 196 ret = getsockopt(sk, IPPROTO_TCP, TCP_AO_GET_KEYS, &tmp, &tmp_sz); in test_get_one_ao() 211 if (getsockopt(sk, IPPROTO_TCP, TCP_AO_INFO, out, &sz)) in test_get_ao_info() 382 err = getsockopt(sk, IPPROTO_TCP, TCP_AO_GET_KEYS, in test_get_tcp_ao_counters()
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | so_netns_cookie.c | 35 if (getsockopt(sock1, SOL_SOCKET, SO_NETNS_COOKIE, &cookie1, &vallen) != 0) in main() 49 if (getsockopt(sock2, SOL_SOCKET, SO_NETNS_COOKIE, &cookie2, &vallen) != 0) in main()
|
D | timestamping.c | 471 if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMP, &val, &len) < 0) in main() 476 if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMPNS, &val, &len) < 0) in main() 483 if (getsockopt(sock, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping_get, in main()
|
/linux-6.12.1/Documentation/bpf/ |
D | prog_cgroup_sockopt.rst | 10 * ``BPF_CGROUP_GETSOCKOPT`` - called every time process executes ``getsockopt`` 47 has been increased above initial ``getsockopt`` value (i.e. userspace 75 When the application calls ``getsockopt`` syscall from the cgroup B, 77 (B) sees the result of kernel's ``getsockopt``. It can optionally 112 SEC("cgroup/getsockopt") 113 int getsockopt(struct bpf_sockopt *ctx)
|
/linux-6.12.1/samples/bpf/ |
D | test_cgrp2_sock.c | 136 rc = getsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, name, &optlen); in get_bind_to_device() 149 rc = getsockopt(sd, SOL_SOCKET, SO_MARK, &mark, &optlen); in get_somark() 162 rc = getsockopt(sd, SOL_SOCKET, SO_PRIORITY, &prio, &optlen); in get_priority()
|
/linux-6.12.1/net/smc/ |
D | smc_inet.c | 47 .getsockopt = smc_getsockopt, 95 .getsockopt = smc_getsockopt,
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | cgroup_getset_retval_hooks.h | 19 BPF_RETVAL_HOOK(getsockopt, "cgroup/getsockopt", bpf_sockopt, 0)
|
/linux-6.12.1/kernel/ |
D | sys_ni.c | 152 COND_SYSCALL(getsockopt); 153 COND_SYSCALL_COMPAT(getsockopt);
|
/linux-6.12.1/net/ipv4/ |
D | udplite.c | 55 .getsockopt = udp_getsockopt,
|
/linux-6.12.1/net/ipv6/ |
D | udplite.c | 54 .getsockopt = udpv6_getsockopt,
|
/linux-6.12.1/tools/testing/selftests/net/af_unix/ |
D | scm_pidfd.c | 348 if (getsockopt(cfd, SOL_SOCKET, SO_PEERCRED, &peer_cred, &len)) { in client() 354 if (getsockopt(cfd, SOL_SOCKET, SO_PEERPIDFD, &peer_pidfd, &len)) { in client()
|
/linux-6.12.1/tools/bpf/bpftool/Documentation/ |
D | bpftool-cgroup.rst | 114 - **getsockopt** call to getsockopt (since 5.3)
|