blob: 6c984b0ea83881b030c2cfb5931918d6ddfaf5a3 [file] [log] [blame]
/* SPDX-License-Identifier: GPL-2.0 */
struct bpf_nf_ctx {
const struct nf_hook_state *state;
struct sk_buff *skb;
};
#if IS_ENABLED(CONFIG_NETFILTER_BPF_LINK)
int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
#else
static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
{
return -EOPNOTSUPP;
}
#endif