Skip to contentSkip to conversation

Kill 480 kB redundant data in conntrack application

PATCH Applied Marcus Sundberg 2 participants 2 messages Nov 22, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Kill 480 kB redundant data in conntrack application

Hi,

the NUMBER_OF_OPT #define in the conntrack application is "a bit" oversized. :-)

Fix bogus NUMBER_OF_OPT definition.

include/conntrack.h +2 -2
Index: conntrack/include/conntrack.h
===================================================================
@@ -115,9 +115,9 @@
 	CT_OPT_ID_BIT		= 15,
 	CT_OPT_ID		= (1 << CT_OPT_ID_BIT),
 
-	CT_OPT_MAX		= CT_OPT_ID
+	CT_OPT_MAX_BIT		= CT_OPT_ID_BIT
 };
-#define NUMBER_OF_OPT   CT_OPT_MAX
+#define NUMBER_OF_OPT   (CT_OPT_MAX_BIT+1)
 
 struct ctproto_handler {
 	struct list_head 	head;
Signature · 3 lines
---------------------------------------+--------------------------
  Marcus Sundberg <[email protected]>  | Firewalls with SIP & NAT
 Software Developer, Ingate Systems AB |  http://www.ingate.com/
maintainer Applied
#1 lore raw
Quoted 2 lines · Marcus Sundberg

the NUMBER_OF_OPT #define in the conntrack application is "a bit" oversized. :-)

Applied. Thanks.

Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris