Skip to content

KFunc bpf_ct_set_status

v6.0

Set status field of allocated nf_conn

Definition

Set the status field of the newly allocated nf_conn before insertion. This must be invoked for referenced PTR_TO_BTF_ID to nf_conn___init.

Parameters

nfct: Pointer to referenced nf_conn object, obtained using bpf_xdp_ct_alloc or bpf_skb_ct_alloc.

status: New status value.

int bpf_ct_set_status(const struct nf_conn___init *nfct, u32 status)

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.