Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 3 of 3) sorted by relevance

/samples/bpf/
Dsock_flags_kern.c9 int bpf_prog1(struct bpf_sock *sk) in bpf_prog1() argument
17 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol); in bpf_prog1()
23 if (sk->family == PF_INET6 && in bpf_prog1()
24 sk->type == SOCK_RAW && in bpf_prog1()
25 sk->protocol == IPPROTO_ICMPV6) in bpf_prog1()
32 int bpf_prog2(struct bpf_sock *sk) in bpf_prog2() argument
36 bpf_trace_printk(fmt, sizeof(fmt), sk->family, sk->type, sk->protocol); in bpf_prog2()
41 if (sk->family == PF_INET && in bpf_prog2()
42 sk->type == SOCK_RAW && in bpf_prog2()
43 sk->protocol == IPPROTO_ICMP) in bpf_prog2()
Dtcp_dumpstats_kern.c29 struct bpf_sock *sk; in _sockops() local
43 sk = ctx->sk; in _sockops()
44 if (!sk) in _sockops()
47 next_dump = bpf_sk_storage_get(&bpf_next_dump, sk, 0, in _sockops()
56 tcp_sk = bpf_tcp_sock(sk); in _sockops()
Dhbm_kern.h84 struct bpf_sock *sk; in get_tcp_info() local
87 sk = skb->sk; in get_tcp_info()
88 if (sk) { in get_tcp_info()
89 sk = bpf_sk_fullsock(sk); in get_tcp_info()
90 if (sk) { in get_tcp_info()
91 if (sk->protocol == IPPROTO_TCP) { in get_tcp_info()
92 tp = bpf_tcp_sock(sk); in get_tcp_info()