Home
last modified time | relevance | path

Searched refs:sk_common (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dsock_destroy_prog.c51 struct sock_common *sk_common = ctx->sk_common; in iter_tcp6_client() local
56 if (!sk_common) in iter_tcp6_client()
59 if (sk_common->skc_family != AF_INET6) in iter_tcp6_client()
62 sock_cookie = bpf_get_socket_cookie(sk_common); in iter_tcp6_client()
68 bpf_sock_destroy(sk_common); in iter_tcp6_client()
76 struct sock_common *sk_common = ctx->sk_common; in iter_tcp6_server() local
82 if (!sk_common) in iter_tcp6_server()
85 if (sk_common->skc_family != AF_INET6) in iter_tcp6_server()
88 tcp_sk = bpf_skc_to_tcp6_sock(sk_common); in iter_tcp6_server()
98 bpf_sock_destroy(sk_common); in iter_tcp6_server()
Dbpf_iter_bpf_sk_storage_helpers.c52 struct sock_common *sk_common = ctx->sk_common; in negate_socket_local_storage() local
55 if (!sk_common) in negate_socket_local_storage()
58 sock_tgid = bpf_sk_storage_get(&sk_stg_map, sk_common, 0, 0); in negate_socket_local_storage()
Dbpf_iter_tcp4.c198 struct sock_common *sk_common = ctx->sk_common; in dump_tcp4() local
206 if (sk_common == (void *)0) in dump_tcp4()
217 if (sk_common->skc_family != AF_INET) in dump_tcp4()
220 tp = bpf_skc_to_tcp_sock(sk_common); in dump_tcp4()
224 tw = bpf_skc_to_tcp_timewait_sock(sk_common); in dump_tcp4()
228 req = bpf_skc_to_tcp_request_sock(sk_common); in dump_tcp4()
Dbpf_iter_tcp6.c214 struct sock_common *sk_common = ctx->sk_common; in dump_tcp6() local
222 if (sk_common == (void *)0) in dump_tcp6()
233 if (sk_common->skc_family != AF_INET6) in dump_tcp6()
236 tp = bpf_skc_to_tcp6_sock(sk_common); in dump_tcp6()
240 tw = bpf_skc_to_tcp_timewait_sock(sk_common); in dump_tcp6()
244 req = bpf_skc_to_tcp_request_sock(sk_common); in dump_tcp6()
Dbpf_iter_setsockopt.c46 if (!bpf_tcp_sk(ctx->sk_common)) in change_tcp_cc()
Dbpf_iter.h93 struct sock_common *sk_common; member
/Linux-v6.6/net/ipv4/
Dtcp_ipv4.c2774 __bpf_md_ptr(struct sock_common *, sk_common);
2779 struct sock_common *sk_common, uid_t uid) in tcp_prog_seq_show() argument
2785 ctx.sk_common = sk_common; in tcp_prog_seq_show()
3314 struct sock_common *sk_common, uid_t uid) in DEFINE_BPF_ITER_FUNC() argument
3369 { offsetof(struct bpf_iter__tcp, sk_common),