Home
last modified time | relevance | path

Searched refs:SOL_TCP (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dconnect4_prog.c56 if (bpf_getsockopt(ctx, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in verify_cc()
74 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &reno, sizeof(reno))) in set_cc()
79 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &cubic, sizeof(cubic))) in set_cc()
117 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPIDLE, &one, sizeof(one))) in set_keepalive()
119 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPINTVL, &one, sizeof(one))) in set_keepalive()
121 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPCNT, &one, sizeof(one))) in set_keepalive()
123 if (bpf_setsockopt(ctx, SOL_TCP, TCP_SYNCNT, &one, sizeof(one))) in set_keepalive()
125 if (bpf_setsockopt(ctx, SOL_TCP, TCP_USER_TIMEOUT, &one, sizeof(one))) in set_keepalive()
139 if (bpf_setsockopt(ctx, SOL_TCP, TCP_NOTSENT_LOWAT, &lowat, sizeof(lowat))) in set_notsent_lowat()
H A Dsockopt_sk.c12 #ifndef SOL_TCP
13 #define SOL_TCP IPPROTO_TCP macro
66 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _getsockopt()
74 if (ctx->level == SOL_TCP && ctx->optname == TCP_ZEROCOPY_RECEIVE) { in _getsockopt()
181 if (ctx->level == SOL_TCP && ctx->optname == TCP_CONGESTION) { in _setsockopt()
H A Dtest_tcpbpf_kern.c24 #ifndef SOL_TCP
25 #define SOL_TCP 6 macro
100 rv = bpf_setsockopt(skops, SOL_TCP, TCP_WINDOW_CLAMP, in bpf_testcb()
129 rv = bpf_setsockopt(skops, SOL_TCP, TCP_WINDOW_CLAMP, in bpf_testcb()
H A Dbpf_dctcp.c69 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
77 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
82 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
87 tcp_cdg_res = bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
89 bpf_getsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
H A Dsockopt_qos_to_cc.c29 if (bpf_getsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in sockopt_qos_to_cc()
36 if (bpf_setsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &cc_reno, in sockopt_qos_to_cc()
H A Dbpf_iter_setsockopt.c57 if (bpf_getsockopt(tp, SOL_TCP, TCP_CONGESTION, in change_tcp_cc()
67 bpf_setsockopt(tp, SOL_TCP, TCP_CONGESTION, dctcp_cc, sizeof(dctcp_cc)); in change_tcp_cc()
H A Dtest_misc_tcp_hdr_options.c98 ret = bpf_getsockopt(skops, SOL_TCP, TCP_BPF_SYN_IP, &hdr.ip6, in __check_active_hdr_in()
107 ret = bpf_getsockopt(skops, SOL_TCP, TCP_BPF_SYN_IP, &hdr, sizeof(hdr)); in __check_active_hdr_in()
115 ret = bpf_getsockopt(skops, SOL_TCP, TCP_BPF_SYN, &hdr, sizeof(hdr)); in __check_active_hdr_in()
309 bpf_setsockopt(skops, SOL_TCP, TCP_SAVE_SYN, in misc_estab()
H A Dbpf_dctcp_release.c18 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_STRUCT_OPS()
H A Dtest_tcp_hdr_options.c402 return bpf_setsockopt(skops, SOL_TCP, TCP_BPF_DELACK_MAX, in set_delack_max()
410 return bpf_setsockopt(skops, SOL_TCP, TCP_BPF_RTO_MIN, &min_rto_us, in set_rto_min()
604 bpf_setsockopt(skops, SOL_TCP, TCP_SAVE_SYN, in estab()
H A Dbpf_tracing_net.h31 #define SOL_TCP 6 macro
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockopt_sk.c9 #ifndef SOL_TCP
10 #define SOL_TCP IPPROTO_TCP macro
146 err = setsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, strlen("nv")); 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()
H A Dsockopt_qos_to_cc.c21 err = getsockopt(sock_fd, SOL_TCP, TCP_CONGESTION, cc, &optlen); in run_setsockopt_test()
51 err = setsockopt(sock_fd, SOL_TCP, TCP_CONGESTION, &cc_cubic, in test_sockopt_qos_to_cc()
H A Dbpf_iter_setsockopt.c27 if (setsockopt(fds[i], SOL_TCP, TCP_CONGESTION, "bpf_cubic", in set_bpf_cubic()
42 if (getsockopt(fds[i], SOL_TCP, TCP_CONGESTION, in check_bpf_dctcp()
H A Dtcp_rtt.c31 err = getsockopt(fd, SOL_TCP, TCP_INFO, &info, &optlen); in wait_for_ack()
/openbmc/linux/samples/bpf/
H A Dtcp_cong_kern.c59 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
63 rv = bpf_setsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_cong()
H A Dtcp_clamp_kern.c69 rv = bpf_setsockopt(skops, SOL_TCP, in bpf_clamp()
75 rv = bpf_setsockopt(skops, SOL_TCP, in bpf_clamp()
H A Dtcp_tos_reflect_kern.c42 rv = bpf_setsockopt(skops, SOL_TCP, TCP_SAVE_SYN, in bpf_basertt()
50 rv = bpf_getsockopt(skops, SOL_TCP, TCP_SAVED_SYN, in bpf_basertt()
H A Dtcp_basertt_kern.c48 n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_basertt()
H A Dtcp_iw_kern.c64 rv = bpf_setsockopt(skops, SOL_TCP, TCP_BPF_IW, &iw, in bpf_iw()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_tcp_hdr_options.h66 #ifndef SOL_TCP
67 #define SOL_TCP 6 macro
H A Dbpf_tcp_helpers.h15 #ifndef SOL_TCP
16 #define SOL_TCP 6 macro
/openbmc/linux/tools/testing/selftests/net/
H A Dtcp_inq.c146 if (setsockopt(fd, SOL_TCP, TCP_INQ, &one, sizeof(one)) != 0) in main()
167 if (cm->cmsg_level == SOL_TCP && cm->cmsg_type == TCP_CM_INQ) in main()
H A Dtcp_fastopen_backup_key.c55 if (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, &len)) in get_keys()
72 if (setsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, in set_keys()
132 if (setsockopt(rcv_fds[i], SOL_TCP, TCP_FASTOPEN, &qlen, in build_rcv_fd()
/openbmc/linux/net/mptcp/
H A Dsockopt.c540 if (level == SOL_TCP) { in mptcp_supported_sockopt()
803 mptcp_setsockopt_first_sf_only(msk, SOL_TCP, optname, optval, optlen); in mptcp_setsockopt_sol_tcp()
809 return mptcp_setsockopt_first_sf_only(msk, SOL_TCP, optname, in mptcp_setsockopt_sol_tcp()
887 if (level == SOL_TCP) in mptcp_setsockopt()
1359 return mptcp_getsockopt_first_sf_only(msk, SOL_TCP, optname, in mptcp_getsockopt_sol_tcp()
1435 if (level == SOL_TCP) in mptcp_getsockopt()
/openbmc/qemu/util/
H A Dosdep.c38 #if defined(SOL_TCP) && defined(TCP_CORK) in socket_set_cork()
39 return setsockopt(fd, SOL_TCP, TCP_CORK, &v, sizeof(v)); in socket_set_cork()

12