Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 - Arithmetic error when calculating ticks to nd...
details: https://anonhg.NetBSD.org/src/rev/668d37e8e200
branches: trunk
changeset: 581137:668d37e8e200
user: seanb <seanb%NetBSD.org@localhost>
date: Fri May 27 22:26:25 2005 +0000
description:
- Arithmetic error when calculating ticks to nd6_llinfo_settimer().
- Reviewed by christos.
diffstat:
sys/netinet6/nd6.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 6334a54f4c35 -r 668d37e8e200 sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c Fri May 27 22:02:25 2005 +0000
+++ b/sys/netinet6/nd6.c Fri May 27 22:26:25 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nd6.c,v 1.92 2005/04/03 11:02:27 tron Exp $ */
+/* $NetBSD: nd6.c,v 1.93 2005/05/27 22:26:25 seanb Exp $ */
/* $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.92 2005/04/03 11:02:27 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.93 2005/05/27 22:26:25 seanb Exp $");
#include "opt_ipsec.h"
@@ -885,9 +885,9 @@
* XXX: the check for ln_state would be redundant,
* but we intentionally keep it just in case.
*/
- if (dr->expire > time.tv_sec * hz)
+ if (dr->expire > time.tv_sec)
nd6_llinfo_settimer(ln,
- dr->expire - time.tv_sec * hz);
+ (dr->expire - time.tv_sec) * hz);
else
nd6_llinfo_settimer(ln, (long)nd6_gctimer * hz);
splx(s);
Home |
Main Index |
Thread Index |
Old Index