#ifndef __LINUX_BRIDGE_NETFILTER_H
#define __LINUX_BRIDGE_NETFILTER_H
#include <uapi/linux/netfilter_bridge.h>
#include <linux/skbuff.h>
struct nf_bridge_frag_data { … };
#if IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb);
static inline void br_drop_fake_rtable(struct sk_buff *skb)
{ … }
static inline struct nf_bridge_info *
nf_bridge_info_get(const struct sk_buff *skb)
{ … }
static inline bool nf_bridge_info_exists(const struct sk_buff *skb)
{ … }
static inline int nf_bridge_get_physinif(const struct sk_buff *skb)
{ … }
static inline int nf_bridge_get_physoutif(const struct sk_buff *skb)
{ … }
static inline struct net_device *
nf_bridge_get_physindev(const struct sk_buff *skb, struct net *net)
{ … }
static inline struct net_device *
nf_bridge_get_physoutdev(const struct sk_buff *skb)
{ … }
static inline bool nf_bridge_in_prerouting(const struct sk_buff *skb)
{ … }
#else
#define br_drop_fake_rtable …
static inline bool nf_bridge_in_prerouting(const struct sk_buff *skb)
{
return false;
}
#endif
#endif