diff options
author | Patrick McHardy <kaber@trash.net> | 2006-02-16 00:18:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-02-16 00:18:19 +0100 |
commit | 9c92d3486434e7310cb288587953e2dae4a79701 (patch) | |
tree | 33bbc2088b4250339ea5f18f8eaad99ee6c34ab8 /include | |
parent | [XFRM]: Fix SNAT-related crash in xfrm4_output_finish (diff) | |
download | linux-9c92d3486434e7310cb288587953e2dae4a79701.tar.xz linux-9c92d3486434e7310cb288587953e2dae4a79701.zip |
[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')
-rw-r--r-- | include/linux/netfilter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index 3ca3d9ee78a9..468896939843 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, struct net_device *indev, struct net_device *outdev, int (*okfn)(struct sk_buff *)) { - return okfn(*pskb); + return 1; } static inline void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) {} struct flowi; |