aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-03-23 14:16:30 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:43 -0400
commite6f689db51a789807edede411b32eb7c9e457948 (patch)
tree6ba28587853721dc617d7f71ab622ac54eb4cd9d /net/ipv6
parent9afdb00c80b0b9c20435ce690b5287fa2434ef44 (diff)
[NETFILTER]: Use setup_timer
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/nf_conntrack_reasm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
index 721f02d7b7f6..347ab7608231 100644
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
@@ -353,9 +353,7 @@ nf_ct_frag6_create(unsigned int hash, __be32 id, struct in6_addr *src, str
353 ipv6_addr_copy(&fq->saddr, src); 353 ipv6_addr_copy(&fq->saddr, src);
354 ipv6_addr_copy(&fq->daddr, dst); 354 ipv6_addr_copy(&fq->daddr, dst);
355 355
356 init_timer(&fq->timer); 356 setup_timer(&fq->timer, nf_ct_frag6_expire, (unsigned long)fq);
357 fq->timer.function = nf_ct_frag6_expire;
358 fq->timer.data = (long) fq;
359 spin_lock_init(&fq->lock); 357 spin_lock_init(&fq->lock);
360 atomic_set(&fq->refcnt, 1); 358 atomic_set(&fq->refcnt, 1);
361 359
@@ -870,8 +868,7 @@ int nf_ct_frag6_init(void)
870 nf_ct_frag6_hash_rnd = (u32) ((num_physpages ^ (num_physpages>>7)) ^ 868 nf_ct_frag6_hash_rnd = (u32) ((num_physpages ^ (num_physpages>>7)) ^
871 (jiffies ^ (jiffies >> 6))); 869 (jiffies ^ (jiffies >> 6)));
872 870
873 init_timer(&nf_ct_frag6_secret_timer); 871 setup_timer(&nf_ct_frag6_secret_timer, nf_ct_frag6_secret_rebuild, 0);
874 nf_ct_frag6_secret_timer.function = nf_ct_frag6_secret_rebuild;
875 nf_ct_frag6_secret_timer.expires = jiffies 872 nf_ct_frag6_secret_timer.expires = jiffies
876 + nf_ct_frag6_secret_interval; 873 + nf_ct_frag6_secret_interval;
877 add_timer(&nf_ct_frag6_secret_timer); 874 add_timer(&nf_ct_frag6_secret_timer);