Lines Matching refs:opt

28 	int opt;  member
41 { .opt = SO_REUSEADDR, .flip = 1, },
42 { .opt = SO_SNDBUF, .new = 8123, .expected = 8123 * 2, },
43 { .opt = SO_RCVBUF, .new = 8123, .expected = 8123 * 2, },
44 { .opt = SO_KEEPALIVE, .flip = 1, },
45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
46 { .opt = SO_REUSEPORT, .flip = 1, },
47 { .opt = SO_RCVLOWAT, .new = 8123, .expected = 8123, },
48 { .opt = SO_MARK, .new = 0xeb9f, .expected = 0xeb9f, },
49 { .opt = SO_MAX_PACING_RATE, .new = 0xeb9f, .expected = 0xeb9f, },
50 { .opt = SO_TXREHASH, .flip = 1, },
51 { .opt = 0, },
55 { .opt = TCP_NODELAY, .flip = 1, },
56 { .opt = TCP_KEEPIDLE, .new = 123, .expected = 123, .restore = 321, },
57 { .opt = TCP_KEEPINTVL, .new = 123, .expected = 123, .restore = 321, },
58 { .opt = TCP_KEEPCNT, .new = 123, .expected = 123, .restore = 124, },
59 { .opt = TCP_SYNCNT, .new = 123, .expected = 123, .restore = 124, },
60 { .opt = TCP_WINDOW_CLAMP, .new = 8123, .expected = 8123, .restore = 8124, },
61 { .opt = TCP_CONGESTION, },
62 { .opt = TCP_THIN_LINEAR_TIMEOUTS, .flip = 1, },
63 { .opt = TCP_USER_TIMEOUT, .new = 123400, .expected = 123400, },
64 { .opt = TCP_NOTSENT_LOWAT, .new = 1314, .expected = 1314, },
65 { .opt = 0, },
69 { .opt = IP_TOS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
70 { .opt = 0, },
74 { .opt = IPV6_TCLASS, .new = 0xe1, .expected = 0xe1, .tcp_expected = 0xe0, },
75 { .opt = IPV6_AUTOFLOWLABEL, .flip = 1, },
76 { .opt = 0, },
88 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip() local
90 opt = t->opt; in bpf_test_sockopt_flip()
92 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_flip()
95 if (level == SOL_SOCKET && opt == SO_TXREHASH && old != 0 && old != 1) in bpf_test_sockopt_flip()
99 if (bpf_setsockopt(ctx, level, opt, &new, sizeof(new))) in bpf_test_sockopt_flip()
101 if (bpf_getsockopt(ctx, level, opt, &tmp, sizeof(tmp)) || in bpf_test_sockopt_flip()
105 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_flip()
115 int old, tmp, new, expected, opt; in bpf_test_sockopt_int() local
117 opt = t->opt; in bpf_test_sockopt_int()
124 if (bpf_getsockopt(ctx, level, opt, &old, sizeof(old)) || in bpf_test_sockopt_int()
128 if (bpf_setsockopt(ctx, level, opt, &new, sizeof(new))) in bpf_test_sockopt_int()
130 if (bpf_getsockopt(ctx, level, opt, &tmp, sizeof(tmp)) || in bpf_test_sockopt_int()
136 if (bpf_setsockopt(ctx, level, opt, &old, sizeof(old))) in bpf_test_sockopt_int()
150 if (!t->opt) in bpf_test_socket_sockopt()
167 if (!t->opt) in bpf_test_ip_sockopt()
184 if (!t->opt) in bpf_test_ipv6_sockopt()
203 if (!t->opt) in bpf_test_tcp_sockopt()
209 if (t->opt == TCP_CONGESTION) { in bpf_test_tcp_sockopt()