aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-02-15 18:18:19 -0500
committerDavid S. Miller <davem@davemloft.net>2006-02-15 18:18:19 -0500
commit9c92d3486434e7310cb288587953e2dae4a79701 (patch)
tree33bbc2088b4250339ea5f18f8eaad99ee6c34ab8 /include/linux
parent48d5cad87c3a4998d0bda16ccfb5c60dfe4de5fb (diff)
[NETFILTER]: Don't invoke okfn in CONFIG_NETFILTER=n variant of nf_hook()
nf_hook() is supposed to call the netfilter hook and return control of the packet back to the caller in case it may pass, the okfn is only used for queueing. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netfilter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index 3ca3d9ee78a..46889693984 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -318,7 +318,7 @@ static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb,
318 struct net_device *indev, struct net_device *outdev, 318 struct net_device *indev, struct net_device *outdev,
319 int (*okfn)(struct sk_buff *)) 319 int (*okfn)(struct sk_buff *))
320{ 320{
321 return okfn(*pskb); 321 return 1;
322} 322}
323static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} 323static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {}
324struct flowi; 324struct flowi;