summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_private.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-03-09 12:30:12 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-09 17:56:07 +0100
commite5de75bf88858f5b3ab11e2504b86ec059f03102 (patch)
tree9ddfee8bbd6a4d7518e1e660aacba999cb91711b /net/bridge/br_private.h
parent7a8d831df5811f49957cc9b7976319973d088c34 (diff)
downloadlinux-e5de75bf88858f5b3ab11e2504b86ec059f03102.tar.gz
linux-e5de75bf88858f5b3ab11e2504b86ec059f03102.tar.bz2
linux-e5de75bf88858f5b3ab11e2504b86ec059f03102.zip
netfilter: bridge: move DNAT helper to br_netfilter
Only one caller, there is no need to keep this in a header. Move it to br_netfilter.c where this belongs to. Based on patch from Florian Westphal. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/bridge/br_private.h')
-rw-r--r--net/bridge/br_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
index de0919975a25..d63fc17fe4f4 100644
--- a/net/bridge/br_private.h
+++ b/net/bridge/br_private.h
@@ -764,10 +764,15 @@ static inline int br_vlan_enabled(struct net_bridge *br)
/* br_netfilter.c */
#if IS_ENABLED(CONFIG_BRIDGE_NETFILTER)
+int br_nf_prerouting_finish_bridge(struct sk_buff *skb);
int br_nf_core_init(void);
void br_nf_core_fini(void);
void br_netfilter_rtable_init(struct net_bridge *);
#else
+static inline int br_nf_prerouting_finish_bridge(struct sk_buff *skb)
+{
+ return 0;
+}
static inline int br_nf_core_init(void) { return 0; }
static inline void br_nf_core_fini(void) {}
#define br_netfilter_rtable_init(x)