KFunc bpf_ct_set_timeout
Set timeout of allocated nf_conn
Definition
Sets the default timeout of newly allocated nf_conn
before insertion.
This helper must be invoked for refcounted pointer to nf_conn___init
.
Parameters
nfct
: Pointer to referenced nf_conn
object, obtained using bpf_xdp_ct_alloc
or bpf_skb_ct_alloc
.
timeout
: Timeout in msecs.
void bpf_ct_set_timeout(struct nf_conn___init *nfct, u32 timeout)
Usage
Docs could be improved
This part of the docs is incomplete, contributions are very welcome
Program types
The following program types can make use of this kfunc:
Example
See bpf_ct_set_nat_info
for an example of how to use this kfunc.