Lines Matching refs:opt

25 	int opt;  member
38 { .opt = SO_REUSEADDR, .flip = 1, },
39 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
40 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
41 { .opt = SO_KEEPALIVE, .flip = 1, },
42 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
43 { .opt = SO_REUSEPORT, .flip = 1, },
44 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
45 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
47 { .opt = SO_TXREHASH, .flip = 1, },
48 { .opt = 0, },
52 { .opt = TCP_NODELAY, .flip = 1, },
53 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, },
54 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, },
55 { .opt = TCP_KEEPCNT, .new = 123, .expected = 123, .restore = 124, },
56 { .opt = TCP_SYNCNT, .new = 123, .expected = 123, .restore = 124, },
57 { .opt = TCP_WINDOW_CLAMP, .new = 8123, .expected = 8123, .restore = 8124, },
58 { .opt = TCP_CONGESTION, },
59 { .opt = TCP_THIN_LINEAR_TIMEOUTS, .flip = 1, },
60 { .opt = TCP_USER_TIMEOUT, .new = 123400, .expected = 123400, },
61 { .opt = TCP_NOTSENT_LOWAT, .new = 1314, .expected = 1314, },
62 { .opt = TCP_BPF_SOCK_OPS_CB_FLAGS, .new = BPF_SOCK_OPS_ALL_CB_FLAGS,
64 { .opt = TCP_BPF_DELACK_MAX, .new = 30000, .expected = 30000, },
65 { .opt = TCP_BPF_RTO_MIN, .new = 30000, .expected = 30000, },
66 { .opt = TCP_RTO_MAX_MS, .new = 2000, .expected = 2000, },
67 { .opt = 0, },
71 { .opt = IP_TOS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
72 { .opt = 0, },
76 { .opt = IPV6_TCLASS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
77 { .opt = IPV6_AUTOFLOWLABEL, .flip = 1, },
78 { .opt = 0, },
98 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip() local
100 opt = t->opt; in bpf_test_sockopt_flip()
102 if (opt == SO_TXREHASH && !sk_is_tcp(sk)) in bpf_test_sockopt_flip()
105 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_flip()
108 if (level == SOL_SOCKET && opt == SO_TXREHASH && old != 0 && old != 1) in bpf_test_sockopt_flip()
112 if (bpf_setsockopt(ctx, level, opt, &new, sizeof(new))) in bpf_test_sockopt_flip()
114 if (bpf_getsockopt(ctx, level, opt, &tmp, sizeof(tmp)) || in bpf_test_sockopt_flip()
118 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_flip()
128 int old, tmp, new, expected, opt; in bpf_test_sockopt_int() local
130 opt = t->opt; in bpf_test_sockopt_int()
137 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old)) || in bpf_test_sockopt_int()
141 if (bpf_setsockopt(ctx, level, opt, &new, sizeof(new))) in bpf_test_sockopt_int()
143 if (bpf_getsockopt(ctx, level, opt, &tmp, sizeof(tmp)) || in bpf_test_sockopt_int()
149 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_int()
163 if (!t->opt) in bpf_test_socket_sockopt()
180 if (!t->opt) in bpf_test_ip_sockopt()
197 if (!t->opt) in bpf_test_ipv6_sockopt()
216 if (!t->opt) in bpf_test_tcp_sockopt()
222 if (t->opt == TCP_CONGESTION) { in bpf_test_tcp_sockopt()