Helper function bpf_skc_to_tcp_timewait_sock
Definition
Copyright (c) 2015 The Libbpf Authors. All rights reserved.
Dynamically cast a sk pointer to a tcp_timewait_sock pointer.
Returns
sk if casting is valid, or NULL otherwise.
static struct tcp_timewait_sock *(* const bpf_skc_to_tcp_timewait_sock)(void *sk) = (void *) 138;
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_FLOW_DISSECTOR
BPF_PROG_TYPE_SK_LOOKUP
BPF_PROG_TYPE_SK_MSG
BPF_PROG_TYPE_SK_SKB
BPF_PROG_TYPE_SOCK_OPS
BPF_PROG_TYPE_TRACING
Example
Docs could be improved
This part of the docs is incomplete, contributions are very welcome