Skip to contentSkip to conversation

cleanup the conntrack ID initialization

PATCH In review Pablo Neira Ayuso 1 participant 1 message Feb 27, 2006

Subsystems (2)
lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 3/5 cleanup the conntrack ID initialization

Currently the first conntrack ID assigned is 2, use 1 instead.

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

[CONNTRACK] cleanup the conntrack ID initialization

Currently the first conntrack ID assigned is 2, use 1 instead.

net/netfilter/nf_conntrack_core.c +2 -2
Index: net-2.6.git/net/netfilter/nf_conntrack_core.c
===================================================================
@@ -85,8 +85,8 @@ unsigned int nf_ct_log_invalid;
 static LIST_HEAD(unconfirmed);
 static int nf_conntrack_vmalloc;
 
-static unsigned int nf_conntrack_next_id = 1;
-static unsigned int nf_conntrack_expect_next_id = 1;
+static unsigned int nf_conntrack_next_id;
+static unsigned int nf_conntrack_expect_next_id;
 #ifdef CONFIG_NF_CONNTRACK_EVENTS
 struct notifier_block *nf_conntrack_chain;
 struct notifier_block *nf_conntrack_expect_chain;
net/ipv4/netfilter/ip_conntrack_core.c +2 -2
Index: net-2.6.git/net/ipv4/netfilter/ip_conntrack_core.c
===================================================================
@@ -77,8 +77,8 @@ unsigned int ip_ct_log_invalid;
 static LIST_HEAD(unconfirmed);
 static int ip_conntrack_vmalloc;
 
-static unsigned int ip_conntrack_next_id = 1;
-static unsigned int ip_conntrack_expect_next_id = 1;
+static unsigned int ip_conntrack_next_id;
+static unsigned int ip_conntrack_expect_next_id;
 #ifdef CONFIG_IP_NF_CONNTRACK_EVENTS
 struct notifier_block *ip_conntrack_chain;
 struct notifier_block *ip_conntrack_expect_chain;