summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-01-07 12:50:27 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-01-07 12:57:42 -0800
commitf53b61d8c385140fe7f09e0c9187ae813ee9f330 (patch)
treeeffe543a90c814b1b07aeeac7b1fc027b295669d /include
parentda7bc6ee8ee3976696fc740065362ca442eb61c9 (diff)
downloadlinux-3.10-f53b61d8c385140fe7f09e0c9187ae813ee9f330.tar.gz
linux-3.10-f53b61d8c385140fe7f09e0c9187ae813ee9f330.tar.bz2
linux-3.10-f53b61d8c385140fe7f09e0c9187ae813ee9f330.zip
[NETFILTER]: Add dummy nf_hook{_thresh}() when NETFILTER is disabled.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 84506dfa1f3..4cf6088625c 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -295,7 +295,22 @@ extern struct proc_dir_entry *proc_net_netfilter;
#else /* !CONFIG_NETFILTER */
#define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb)
+static inline int nf_hook_thresh(int pf, unsigned int hook,
+ struct sk_buff **pskb,
+ struct net_device *indev,
+ struct net_device *outdev,
+ int (*okfn)(struct sk_buff *), int thresh)
+{
+ return okfn(*pskb);
+}
+static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb,
+ struct net_device *indev, struct net_device *outdev,
+ int (*okfn)(struct sk_buff *))
+{
+ return okfn(*pskb);
+}
static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {}
+struct flowi;
static inline void
nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, int family) {}
#endif /*CONFIG_NETFILTER*/