/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | repair.c | 48 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 D | connect4_prog.c | 33 #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 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 | 13 #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 D | bpf_dctcp.c | 76 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 D | sockopt_qos_to_cc.c | 25 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 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 | 14 bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, in BPF_PROG()
|
/linux/tools/testing/selftests/net/packetdrill/ |
H A D | tcp_inq_server.pkt | 18 +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 D | tcp_inq_client.pkt | 13 +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 D | tcp_zerocopy_fastopen-server.pkt | 15 +0 setsockopt(3, SOL_TCP, TCP_FASTOPEN, [2], 4) = 0
|
/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()
|
/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()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_tcp_hdr_options.h | 66 #ifndef SOL_TCP 67 #define SOL_TCP 6 macro
|
/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()
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | icmps-accept.c | 349 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 D | icmps-discard.c | 349 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()
|