Home
last modified time | relevance | path

Searched refs:srv_sk (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dsock_fields.c94 struct bpf_sock srv_sk, cli_sk, listen_sk; in check_result() local
108 memcpy(&srv_sk, &skel->bss->srv_sk, sizeof(srv_sk)); in check_result()
116 print_sk(&srv_sk, "srv_sk"); in check_result()
135 CHECK(srv_sk.state == 10 || in check_result()
136 !srv_sk.state || in check_result()
137 srv_sk.family != AF_INET6 || in check_result()
138 srv_sk.protocol != IPPROTO_TCP || in check_result()
139 memcmp(srv_sk.src_ip6, &in6addr_loopback, in check_result()
140 sizeof(srv_sk.src_ip6)) || in check_result()
141 memcmp(srv_sk.dst_ip6, &in6addr_loopback, in check_result()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dtest_sock_fields.c49 struct bpf_sock srv_sk = {}; variable
145 sk_ret = &srv_sk; in egress_read_sock_fields()
172 if (sk_ret == &srv_sk) { in egress_read_sock_fields()