Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netkey fixed that the incorrect time was set to sadb_com...



details:   https://anonhg.NetBSD.org/src/rev/79cb846201f0
branches:  trunk
changeset: 535480:79cb846201f0
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Aug 20 06:20:26 2002 +0000

description:
fixed that the incorrect time was set to sadb_comb_{hard|soft}_usetime.
sync w/kame

diffstat:

 sys/netkey/key.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 7b7ad5a39428 -r 79cb846201f0 sys/netkey/key.c
--- a/sys/netkey/key.c  Tue Aug 20 06:04:38 2002 +0000
+++ b/sys/netkey/key.c  Tue Aug 20 06:20:26 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.72 2002/06/27 14:39:45 itojun Exp $  */
+/*     $NetBSD: key.c,v 1.73 2002/08/20 06:20:26 itojun Exp $  */
 /*     $KAME: key.c,v 1.249 2002/06/14 14:46:22 itojun Exp $   */
 
 /*
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.72 2002/06/27 14:39:45 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.73 2002/08/20 06:20:26 itojun Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -5272,9 +5272,9 @@
        comb->sadb_comb_soft_bytes = 0;
        comb->sadb_comb_hard_bytes = 0;
        comb->sadb_comb_hard_addtime = 86400;   /* 1 day */
-       comb->sadb_comb_soft_addtime = comb->sadb_comb_soft_addtime * 80 / 100;
+       comb->sadb_comb_soft_addtime = comb->sadb_comb_hard_addtime * 80 / 100;
        comb->sadb_comb_soft_usetime = 28800;   /* 8 hours */
-       comb->sadb_comb_hard_usetime = comb->sadb_comb_hard_usetime * 80 / 100;
+       comb->sadb_comb_soft_usetime = comb->sadb_comb_hard_usetime * 80 / 100;
 }
 
 #ifdef IPSEC_ESP



Home | Main Index | Thread Index | Old Index