Lines Matching refs:t

85 				 const struct sockopt_test *t,  in bpf_test_sockopt_flip()  argument
88 int old, tmp, new, opt = t->opt; in bpf_test_sockopt_flip()
90 opt = t->opt; in bpf_test_sockopt_flip()
112 const struct sockopt_test *t, in bpf_test_sockopt_int() argument
117 opt = t->opt; in bpf_test_sockopt_int()
118 new = t->new; in bpf_test_sockopt_int()
119 if (sk->sk_type == SOCK_STREAM && t->tcp_expected) in bpf_test_sockopt_int()
120 expected = t->tcp_expected; in bpf_test_sockopt_int()
122 expected = t->expected; in bpf_test_sockopt_int()
134 if (t->restore) in bpf_test_sockopt_int()
135 old = t->restore; in bpf_test_sockopt_int()
144 const struct sockopt_test *t; in bpf_test_socket_sockopt() local
149 t = &sol_socket_tests[i]; in bpf_test_socket_sockopt()
150 if (!t->opt) in bpf_test_socket_sockopt()
153 if (t->flip) in bpf_test_socket_sockopt()
154 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, SOL_SOCKET); in bpf_test_socket_sockopt()
156 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, SOL_SOCKET); in bpf_test_socket_sockopt()
161 const struct sockopt_test *t; in bpf_test_ip_sockopt() local
166 t = &sol_ip_tests[i]; in bpf_test_ip_sockopt()
167 if (!t->opt) in bpf_test_ip_sockopt()
170 if (t->flip) in bpf_test_ip_sockopt()
171 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IP); in bpf_test_ip_sockopt()
173 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, IPPROTO_IP); in bpf_test_ip_sockopt()
178 const struct sockopt_test *t; in bpf_test_ipv6_sockopt() local
183 t = &sol_ipv6_tests[i]; in bpf_test_ipv6_sockopt()
184 if (!t->opt) in bpf_test_ipv6_sockopt()
187 if (t->flip) in bpf_test_ipv6_sockopt()
188 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IPV6); in bpf_test_ipv6_sockopt()
190 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, IPPROTO_IPV6); in bpf_test_ipv6_sockopt()
195 const struct sockopt_test *t; in bpf_test_tcp_sockopt() local
202 t = &sol_tcp_tests[i]; in bpf_test_tcp_sockopt()
203 if (!t->opt) in bpf_test_tcp_sockopt()
209 if (t->opt == TCP_CONGESTION) { in bpf_test_tcp_sockopt()
238 if (t->flip) in bpf_test_tcp_sockopt()
239 return bpf_test_sockopt_flip(ctx, sk, t, IPPROTO_TCP); in bpf_test_tcp_sockopt()
241 return bpf_test_sockopt_int(ctx, sk, t, IPPROTO_TCP); in bpf_test_tcp_sockopt()