Home
last modified time | relevance | path

Searched refs:bpf_nf_ctx (Results 1 – 7 of 7) sorted by relevance

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dverifier_netfilter_ctx.c21 : __imm_const(__bpf_nf_ctx_state, offsetof(struct bpf_nf_ctx, state)) in with_invalid_ctx_access_test1()
35 : __imm_const(__bpf_nf_ctx_skb, offsetof(struct bpf_nf_ctx, skb)) in with_invalid_ctx_access_test2()
49 : __imm_const(__bpf_nf_ctx_size, sizeof(struct bpf_nf_ctx)) in with_invalid_ctx_access_test3()
64 : __imm_const(__bpf_nf_ctx_skb, offsetof(struct bpf_nf_ctx, skb)) in with_invalid_ctx_access_test4()
74 int with_invalid_ctx_access_test5(struct bpf_nf_ctx *ctx) in with_invalid_ctx_access_test5()
91 int with_valid_ctx_access_test6(struct bpf_nf_ctx *ctx) in with_valid_ctx_access_test6()
H A Dtest_netfilter_link_attach.c9 int nf_link_attach_test(struct bpf_nf_ctx *ctx) in nf_link_attach_test()
H A Dip_check_defrag.c90 int defrag(struct bpf_nf_ctx *ctx) in defrag()
/linux-6.15/net/netfilter/
H A Dnf_bpf_link.c15 struct bpf_nf_ctx ctx = { in nf_hook_run_bpf()
295 if (off < 0 || off >= sizeof(struct bpf_nf_ctx)) in nf_is_valid_access()
302 case bpf_ctx_range(struct bpf_nf_ctx, skb): in nf_is_valid_access()
303 if (size != sizeof_field(struct bpf_nf_ctx, skb)) in nf_is_valid_access()
307 case bpf_ctx_range(struct bpf_nf_ctx, state): in nf_is_valid_access()
308 if (size != sizeof_field(struct bpf_nf_ctx, state)) in nf_is_valid_access()
/linux-6.15/include/net/netfilter/
H A Dnf_bpf_link.h3 struct bpf_nf_ctx { struct
/linux-6.15/include/linux/
H A Dbpf_types.h84 struct bpf_nf_ctx, struct bpf_nf_ctx)
/linux-6.15/net/bpf/
H A Dtest_run.c1640 struct bpf_nf_ctx ctx = { in bpf_prog_test_run_nf()