Home
last modified time | relevance | path

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

/linux/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()
86 int with_valid_ctx_access_test6(struct bpf_nf_ctx *ctx)
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.c85 int defrag(struct bpf_nf_ctx *ctx) in handle_v6()
H A Dverifier_ctx.c266 unaligned_access("netfilter", bpf_nf_ctx, skb);
860 no_rewrite_ctx_access("netfilter", netfilter, offsetof(struct bpf_nf_ctx, skb), u64);
/linux/net/netfilter/
H A Dnf_bpf_link.c15 struct bpf_nf_ctx ctx = { in nf_hook_run_bpf()
296 if (off < 0 || off >= sizeof(struct bpf_nf_ctx)) in nf_is_valid_access()
306 case bpf_ctx_range(struct bpf_nf_ctx, skb): in nf_is_valid_access()
307 if (size != sizeof_field(struct bpf_nf_ctx, skb)) in nf_is_valid_access()
311 case bpf_ctx_range(struct bpf_nf_ctx, state): in nf_is_valid_access()
312 if (size != sizeof_field(struct bpf_nf_ctx, state)) in nf_is_valid_access()
/linux/include/net/netfilter/
H A Dnf_bpf_link.h3 struct bpf_nf_ctx { struct