mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 03:40:04 +00:00
f19438bdd4
`struct nf_hook_ops`, `struct nf_hook_state` and the `nf_hookfn` function typedef appear in function and struct declarations and definitions in a number of netfilter headers. The structs and typedef themselves are defined by linux/netfilter.h but only when CONFIG_NETFILTER is enabled. Define them unconditionally and add forward declarations in order to remove CONFIG_NETFILTER conditionals from the other headers. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
19 lines
398 B
C
19 lines
398 B
C
#ifndef NF_CONNTRACK_BRIDGE_
|
|
#define NF_CONNTRACK_BRIDGE_
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/types.h>
|
|
#include <uapi/linux/if_ether.h>
|
|
|
|
struct nf_hook_ops;
|
|
|
|
struct nf_ct_bridge_info {
|
|
struct nf_hook_ops *ops;
|
|
unsigned int ops_size;
|
|
struct module *me;
|
|
};
|
|
|
|
void nf_ct_bridge_register(struct nf_ct_bridge_info *info);
|
|
void nf_ct_bridge_unregister(struct nf_ct_bridge_info *info);
|
|
|
|
#endif
|