File Index
Files and directories
Sign in
FILE

nf_bpf_link.h

File preview with syntax highlighting.

linux-6.19.14/include/net/netfilter/nf_bpf_link.h OBJECTIVE-C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2
 3struct bpf_nf_ctx {
 4	const struct nf_hook_state *state;
 5	struct sk_buff *skb;
 6};
 7
 8#if IS_ENABLED(CONFIG_NETFILTER_BPF_LINK)
 9int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
10#else
11static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
12{
13	return -EOPNOTSUPP;
14}
15#endif
~/ Read-only file preview.