Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec Kill useless IPSEC_DEBUG2 (NFC)



details:   https://anonhg.NetBSD.org/src/rev/e4a28a83becd
branches:  trunk
changeset: 823935:e4a28a83becd
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon May 15 09:51:00 2017 +0000

description:
Kill useless IPSEC_DEBUG2 (NFC)

diffstat:

 sys/netipsec/key.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (40 lines):

diff -r 614bb351653e -r e4a28a83becd sys/netipsec/key.c
--- a/sys/netipsec/key.c        Mon May 15 09:43:56 2017 +0000
+++ b/sys/netipsec/key.c        Mon May 15 09:51:00 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key.c,v 1.122 2017/05/09 05:38:50 ozaki-r Exp $        */
+/*     $NetBSD: key.c,v 1.123 2017/05/15 09:51:00 ozaki-r Exp $        */
 /*     $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $        */
 /*     $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $   */
 
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.122 2017/05/09 05:38:50 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.123 2017/05/15 09:51:00 ozaki-r Exp $");
 
 /*
  * This code is referd to RFC 2367
@@ -4756,10 +4756,8 @@
        }
     }
 
-#ifndef IPSEC_DEBUG2
        /* do exchange to tick time !! */
        callout_reset(&key_timehandler_ch, hz, key_timehandler, NULL);
-#endif /* IPSEC_DEBUG2 */
 
        mutex_exit(softnet_lock);
        splx(s);
@@ -7728,10 +7726,7 @@
        ip6_def_policy.refcnt++;        /*never reclaim this*/
 #endif
 
-
-#ifndef IPSEC_DEBUG2
        callout_reset(&key_timehandler_ch, hz, key_timehandler, NULL);
-#endif /*IPSEC_DEBUG2*/
 
        /* initialize key statistics */
        keystat.getspi_count = 1;



Home | Main Index | Thread Index | Old Index