Home
last modified time | relevance | path

Searched refs:getsockopt (Results 1 – 25 of 160) sorted by relevance

1234567

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dsockopt_multi.c27 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()
Dsockopt_sk.c51 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()
Dlsm_cgroup.c193 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()
Dsk_storage_omem_uncharge.c28 err = getsockopt(sk_fd, SOL_SOCKET, SO_COOKIE, &skel->bss->cookie, &optlen); in test_sk_storage_omem_uncharge()
Dsockopt_qos_to_cc.c21 err = getsockopt(sock_fd, SOL_TCP, TCP_CONGESTION, cc, &optlen); in run_setsockopt_test()
Dmptcp.c254 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()
Dcgroup_getset_retval.c346 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()
Dnetns_cookie.c58 err = getsockopt(client_fd, SOL_SOCKET, SO_NETNS_COOKIE, in test_netns_cookie()
Dbpf_iter_setsockopt_unix.c56 err = getsockopt(fd, SOL_SOCKET, SO_SNDBUF, in test_sndbuf()
Dtest_ldsx_insn.c82 (void)getsockopt(fd, SOL_IP, IP_TTL, buf, &optlen); in test_ctx_member_sign_ext()
Dsockmap_helpers.h90 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/
Dmptcp_sockopt.c288 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/
Drepair.c52 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()
Dsock.c65 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/
Dso_netns_cookie.c35 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()
Dtimestamping.c471 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/
Dprog_cgroup_sockopt.rst10 * ``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/
Dtest_cgrp2_sock.c136 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/
Dsmc_inet.c47 .getsockopt = smc_getsockopt,
95 .getsockopt = smc_getsockopt,
/linux-6.12.1/tools/testing/selftests/bpf/
Dcgroup_getset_retval_hooks.h19 BPF_RETVAL_HOOK(getsockopt, "cgroup/getsockopt", bpf_sockopt, 0)
/linux-6.12.1/kernel/
Dsys_ni.c152 COND_SYSCALL(getsockopt);
153 COND_SYSCALL_COMPAT(getsockopt);
/linux-6.12.1/net/ipv4/
Dudplite.c55 .getsockopt = udp_getsockopt,
/linux-6.12.1/net/ipv6/
Dudplite.c54 .getsockopt = udpv6_getsockopt,
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c348 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/
Dbpftool-cgroup.rst114 - **getsockopt** call to getsockopt (since 5.3)

1234567