Searched refs:srv_sa6 (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | btf_skc_cls_ingress.c | 20 struct sockaddr_in6 srv_sa6; variable 77 memset(&skel->bss->srv_sa6, 0, sizeof(skel->bss->srv_sa6)); in reset_test() 94 socklen_t addrlen = sizeof(srv_sa6); in test_conn() 104 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_conn() 108 memcpy(&skel->bss->srv_sa6, &srv_sa6, sizeof(srv_sa6)); in test_conn() 109 srv_port = ntohs(srv_sa6.sin6_port); in test_conn() 148 socklen_t addrlen = sizeof(srv_sa6); in test_syncookie() 159 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test_syncookie() 163 memcpy(&skel->bss->srv_sa6, &srv_sa6, sizeof(srv_sa6)); in test_syncookie() 164 srv_port = ntohs(srv_sa6.sin6_port); in test_syncookie()
|
D | sock_fields.c | 37 static struct sockaddr_in6 srv_sa6, cli_sa6; variable 129 listen_sk.src_port != ntohs(srv_sa6.sin6_port) || in check_result() 143 srv_sk.src_port != ntohs(srv_sa6.sin6_port) || in check_result() 159 cli_sk.dst_port != srv_sa6.sin6_port, in check_result() 271 err = getsockname(listen_fd, (struct sockaddr *)&srv_sa6, &addrlen); in test() 275 memcpy(&skel->bss->srv_sa6, &srv_sa6, sizeof(srv_sa6)); in test()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_sock_fields.c | 45 struct sockaddr_in6 srv_sa6 = {}; variable 143 if (sk->src_port == bpf_ntohs(srv_sa6.sin6_port)) { in egress_read_sock_fields() 147 } else if (sk->dst_port == srv_sa6.sin6_port) { in egress_read_sock_fields() 231 sk->src_port != bpf_ntohs(srv_sa6.sin6_port)) in ingress_read_sock_fields()
|
D | test_btf_skc_cls_ingress.c | 18 struct sockaddr_in6 srv_sa6 = {}; variable 84 if (th->dest != srv_sa6.sin6_port) in handle_ip6_tcp()
|