Helper function bpf_tcp_sock
Definition
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
This helper gets a struct bpf_tcp_sock pointer from a struct bpf_sock pointer.
Returns
A struct bpf_tcp_sock pointer on success, or NULL in case of failure.
static struct bpf_tcp_sock *(* const bpf_tcp_sock)(struct bpf_sock *sk) = (void *) 96;
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
This helper call can be used in the following program types:
BPF_PROG_TYPE_CGROUP_SKB
BPF_PROG_TYPE_CGROUP_SOCKOPT
BPF_PROG_TYPE_SCHED_ACT
BPF_PROG_TYPE_SCHED_CLS
BPF_PROG_TYPE_SOCK_OPS
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome