* [PATCH] fix nf_info_reroute() macro
@ 2005-07-26 22:01 Harald Welte
0 siblings, 0 replies; only message in thread
From: Harald Welte @ 2005-07-26 22:01 UTC (permalink / raw)
To: David Miller; +Cc: Linux Netdev List, Netfilter Development Mailinglist
[-- Attachment #1.1: Type: text/plain, Size: 471 bytes --]
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 <laforge@gnumonks.org> http://gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
(ETSI EN 300 175-7 Ch. A6)
[-- Attachment #1.2: 15-nf_info_reroute-fix.patch --]
[-- Type: text/plain, Size: 968 bytes --]
Fix calculation of structure end by nf_info_reroute()
Signed-off-by: Harald Welte <laforge@netfilter.org>
---
commit 08fcbede51cf315a0e7aa9b2d6bbdd0aad05cd54
tree 3c7ea5a64f856f2acff65a0b3bd2c40dfac5cf77
parent 7237f235b6bd25773b566d88ec846245c852b1ee
author laforge <laforge@netfilter.org> Di, 26 Jul 2005 23:53:58 +0200
committer laforge <laforge@netfilter.org> 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 #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-26 22:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-26 22:01 [PATCH] fix nf_info_reroute() macro Harald Welte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox