Hi Dave!

This patch fixes the pointer calculation made by the nf_info_reroute() macro.

Please apply on top of my other patches for net-2.6.14, thanks.

-- 
- Harald Welte <[EMAIL PROTECTED]>                      http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)
Fix calculation of structure end by nf_info_reroute()

Signed-off-by: Harald Welte <[EMAIL PROTECTED]>

---
commit 08fcbede51cf315a0e7aa9b2d6bbdd0aad05cd54
tree 3c7ea5a64f856f2acff65a0b3bd2c40dfac5cf77
parent 7237f235b6bd25773b566d88ec846245c852b1ee
author laforge <[EMAIL PROTECTED]> Di, 26 Jul 2005 23:53:58 +0200
committer laforge <[EMAIL PROTECTED]> Di, 26 Jul 2005 23:53:58 +0200

 include/linux/netfilter.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -216,7 +216,7 @@ struct nf_queue_rerouter {
        int rer_size;
 };
 
-#define nf_info_reroute(x) ((void *)x + sizeof(typeof(x)))
+#define nf_info_reroute(x) ((void *)x + sizeof(struct nf_info))
 
 extern int nf_register_queue_rerouter(int pf, struct nf_queue_rerouter *rer);
 extern int nf_unregister_queue_rerouter(int pf);

Attachment: pgpdbSIKuioAg.pgp
Description: PGP signature

Reply via email to