Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_fields.c104 struct bpf_sock srv_sk, cli_sk, listen_sk; in check_result() local
123 memcpy(&srv_sk, &skel->bss->srv_sk, sizeof(srv_sk)); in check_result()
131 print_sk(&srv_sk, "srv_sk"); in check_result()
150 CHECK(srv_sk.state == 10 || in check_result()
151 !srv_sk.state || in check_result()
152 srv_sk.family != AF_INET6 || in check_result()
153 srv_sk.protocol != IPPROTO_TCP || in check_result()
154 memcmp(srv_sk.src_ip6, &in6addr_loopback, in check_result()
155 sizeof(srv_sk.src_ip6)) || in check_result()
156 memcmp(srv_sk.dst_ip6, &in6addr_loopback, in check_result()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sock_fields.c53 struct bpf_sock srv_sk = {}; variable
149 sk_ret = &srv_sk; in egress_read_sock_fields()
176 if (sk_ret == &srv_sk) { in egress_read_sock_fields()