/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | connect4_prog.c | 56 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 D | sockopt_sk.c | 12 #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 D | test_tcpbpf_kern.c | 24 #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 D | bpf_dctcp.c | 69 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 D | sockopt_qos_to_cc.c | 29 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 D | bpf_iter_setsockopt.c | 57 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 D | test_misc_tcp_hdr_options.c | 98 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 D | bpf_dctcp_release.c | 18 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_STRUCT_OPS()
|
H A D | test_tcp_hdr_options.c | 402 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 D | bpf_tracing_net.h | 31 #define SOL_TCP 6 macro
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt_sk.c | 9 #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 D | sockopt_qos_to_cc.c | 21 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 D | bpf_iter_setsockopt.c | 27 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 D | tcp_rtt.c | 31 err = getsockopt(fd, SOL_TCP, TCP_INFO, &info, &optlen); in wait_for_ack()
|
/openbmc/linux/samples/bpf/ |
H A D | tcp_cong_kern.c | 59 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 D | tcp_clamp_kern.c | 69 rv = bpf_setsockopt(skops, SOL_TCP, in bpf_clamp() 75 rv = bpf_setsockopt(skops, SOL_TCP, in bpf_clamp()
|
H A D | tcp_tos_reflect_kern.c | 42 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 D | tcp_basertt_kern.c | 48 n = bpf_getsockopt(skops, SOL_TCP, TCP_CONGESTION, in bpf_basertt()
|
H A D | tcp_iw_kern.c | 64 rv = bpf_setsockopt(skops, SOL_TCP, TCP_BPF_IW, &iw, in bpf_iw()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_tcp_hdr_options.h | 66 #ifndef SOL_TCP 67 #define SOL_TCP 6 macro
|
H A D | bpf_tcp_helpers.h | 15 #ifndef SOL_TCP 16 #define SOL_TCP 6 macro
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | tcp_inq.c | 146 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 D | tcp_fastopen_backup_key.c | 55 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 D | sockopt.c | 540 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 D | osdep.c | 38 #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()
|