Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Drepair.c48 if (setsockopt(sk, SOL_TCP, TCP_REPAIR_QUEUE, &queue, sizeof(queue))) in test_sock_checkpoint_queue()
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()
122 ret = getsockopt(sk, SOL_TCP, TCP_AO_REPAIR, state, &len); in test_ao_checkpoint()
132 if (setsockopt(sk, SOL_TCP, TCP_QUEUE_SEQ, &seq, sizeof(seq))) in test_sock_restore_seq()
212 if (setsockopt(sk, SOL_TCP, TCP_TIMESTAMP, in __test_sock_restore()
224 if (setsockopt(sk, SOL_TCP, TCP_AO_REPAIR, state, sizeof(*state))) in test_ao_restore()
238 if (setsockopt(sk, SOL_TCP, TCP_REPAIR, &val, sizeof(val))) in test_enable_repair()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dconnect4_prog.c33 #ifndef SOL_TCP
34 #define SOL_TCP 6 macro
58 if (bpf_getsockopt(ctx, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in verify_cc()
76 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &reno, sizeof(reno))) in set_cc()
81 if (bpf_setsockopt(ctx, SOL_TCP, TCP_CONGESTION, &cubic, sizeof(cubic))) in set_cc()
119 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPIDLE, &one, sizeof(one))) in set_keepalive()
121 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPINTVL, &one, sizeof(one))) in set_keepalive()
123 if (bpf_setsockopt(ctx, SOL_TCP, TCP_KEEPCNT, &one, sizeof(one))) in set_keepalive()
125 if (bpf_setsockopt(ctx, SOL_TCP, TCP_SYNCNT, &one, sizeof(one))) in set_keepalive()
127 if (bpf_setsockopt(ctx, SOL_TCP, TCP_USER_TIMEOUT, &one, sizeof(one))) in set_keepalive()
[all …]
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.c13 #ifndef SOL_TCP
14 #define SOL_TCP 6 macro
89 rv = bpf_setsockopt(skops, SOL_TCP, TCP_WINDOW_CLAMP, in bpf_testcb()
118 rv = bpf_setsockopt(skops, SOL_TCP, TCP_WINDOW_CLAMP, in bpf_testcb()
H A Dbpf_dctcp.c76 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
84 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
89 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
94 tcp_cdg_res = bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
96 bpf_getsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
H A Dsockopt_qos_to_cc.c25 if (bpf_getsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, &buf, sizeof(buf))) in sockopt_qos_to_cc()
32 if (bpf_setsockopt(ctx->sk, SOL_TCP, TCP_CONGESTION, (void *)&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.c14 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
/linux/tools/testing/selftests/net/packetdrill/
H A Dtcp_inq_server.pkt18 +0 setsockopt(4, SOL_TCP, TCP_INQ, [1], 4) = 0
28 msg_control=[{cmsg_level=SOL_TCP,
35 msg_control=[{cmsg_level=SOL_TCP,
47 msg_control=[{cmsg_level=SOL_TCP,
H A Dtcp_inq_client.pkt13 +0 setsockopt(3, SOL_TCP, TCP_INQ, [1], 4) = 0
27 msg_control=[{cmsg_level=SOL_TCP,
34 msg_control=[{cmsg_level=SOL_TCP,
47 msg_control=[{cmsg_level=SOL_TCP,
H A Dtcp_zerocopy_fastopen-server.pkt15 +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [2], 4) = 0
/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()
/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()
/linux/tools/testing/selftests/bpf/
H A Dtest_tcp_hdr_options.h66 #ifndef SOL_TCP
67 #define SOL_TCP 6 macro
/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()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dicmps-accept.c349 if (setsockopt(sk, SOL_TCP, TCP_REPAIR, &val, sizeof(val))) in get_rcv_nxt()
352 if (setsockopt(sk, SOL_TCP, TCP_REPAIR_QUEUE, &val, sizeof(val))) in get_rcv_nxt()
354 if (getsockopt(sk, SOL_TCP, TCP_QUEUE_SEQ, &ret, &sz)) in get_rcv_nxt()
357 if (setsockopt(sk, SOL_TCP, TCP_REPAIR, &val, sizeof(val))) in get_rcv_nxt()
H A Dicmps-discard.c349 if (setsockopt(sk, SOL_TCP, TCP_REPAIR, &val, sizeof(val))) in get_rcv_nxt()
352 if (setsockopt(sk, SOL_TCP, TCP_REPAIR_QUEUE, &val, sizeof(val))) in get_rcv_nxt()
354 if (getsockopt(sk, SOL_TCP, TCP_QUEUE_SEQ, &ret, &sz)) in get_rcv_nxt()
357 if (setsockopt(sk, SOL_TCP, TCP_REPAIR, &val, sizeof(val))) in get_rcv_nxt()

12