diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-01-07 15:50:27 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-01-07 15:57:42 -0500 |
commit | f53b61d8c385140fe7f09e0c9187ae813ee9f330 (patch) | |
tree | effe543a90c814b1b07aeeac7b1fc027b295669d /include/linux | |
parent | da7bc6ee8ee3976696fc740065362ca442eb61c9 (diff) |
[NETFILTER]: Add dummy nf_hook{_thresh}() when NETFILTER is disabled.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netfilter.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 84506dfa1f37..4cf6088625c1 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h | |||
@@ -295,7 +295,22 @@ extern struct proc_dir_entry *proc_net_netfilter; | |||
295 | 295 | ||
296 | #else /* !CONFIG_NETFILTER */ | 296 | #else /* !CONFIG_NETFILTER */ |
297 | #define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb) | 297 | #define NF_HOOK(pf, hook, skb, indev, outdev, okfn) (okfn)(skb) |
298 | static inline int nf_hook_thresh(int pf, unsigned int hook, | ||
299 | struct sk_buff **pskb, | ||
300 | struct net_device *indev, | ||
301 | struct net_device *outdev, | ||
302 | int (*okfn)(struct sk_buff *), int thresh) | ||
303 | { | ||
304 | return okfn(*pskb); | ||
305 | } | ||
306 | static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb, | ||
307 | struct net_device *indev, struct net_device *outdev, | ||
308 | int (*okfn)(struct sk_buff *)) | ||
309 | { | ||
310 | return okfn(*pskb); | ||
311 | } | ||
298 | static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} | 312 | static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} |
313 | struct flowi; | ||
299 | static inline void | 314 | static inline void |
300 | nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, int family) {} | 315 | nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl, int family) {} |
301 | #endif /*CONFIG_NETFILTER*/ | 316 | #endif /*CONFIG_NETFILTER*/ |