Home
last modified time | relevance | path

Searched refs:srv_sa6 (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_skc_cls_ingress.c21 static struct sockaddr_in6 srv_sa6; variable
60 memset(&skel->bss->srv_sa6, 0, sizeof(skel->bss->srv_sa6)); in reset_test()
77 socklen_t addrlen = sizeof(srv_sa6); in test_conn()
87 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn()
91 memcpy(&skel->bss->srv_sa6, &srv_sa6, sizeof(srv_sa6)); in test_conn()
92 srv_port = ntohs(srv_sa6.sin6_port); in test_conn()
131 socklen_t addrlen = sizeof(srv_sa6); in test_syncookie()
142 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie()
146 memcpy(&skel->bss->srv_sa6, &srv_sa6, sizeof(srv_sa6)); in test_syncookie()
147 srv_port = ntohs(srv_sa6.sin6_port); in test_syncookie()
H A Dsock_fields.c39 static struct sockaddr_in6 srv_sa6, cli_sa6; variable
144 listen_sk.src_port != ntohs(srv_sa6.sin6_port) || in check_result()
158 srv_sk.src_port != ntohs(srv_sa6.sin6_port) || in check_result()
174 cli_sk.dst_port != srv_sa6.sin6_port, in check_result()
286 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test()
290 memcpy(&skel->bss->srv_sa6, &srv_sa6, sizeof(srv_sa6)); in test()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sock_fields.c46 struct sockaddr_in6 srv_sa6 = {}; variable
144 if (sk->src_port == bpf_ntohs(srv_sa6.sin6_port)) { in egress_read_sock_fields()
148 } else if (sk->dst_port == srv_sa6.sin6_port) { in egress_read_sock_fields()
232 sk->src_port != bpf_ntohs(srv_sa6.sin6_port)) in ingress_read_sock_fields()
H A Dtest_btf_skc_cls_ingress.c18 struct sockaddr_in6 srv_sa6 = {}; variable
84 if (th->dest != srv_sa6.sin6_port) in handle_ip6_tcp()