diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-11-21 09:59:27 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-11-21 09:59:27 +0000 |
commit | 0c38f31c18929889a54d03f31c309c2e07231dd9 (patch) | |
tree | bca96aca471b45a679b2356c5450c749de75fef6 /sbin/isakmpd/sa.c | |
parent | 820d14231180a9387ed720f38d02031193c74050 (diff) |
Have sa_dump() also print SA lifetimes (for /var/run/isakmpd.report).
Diffstat (limited to 'sbin/isakmpd/sa.c')
-rw-r--r-- | sbin/isakmpd/sa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c index 1e834268480..829a8e2690f 100644 --- a/sbin/isakmpd/sa.c +++ b/sbin/isakmpd/sa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sa.c,v 1.49 2001/10/26 13:29:26 ho Exp $ */ +/* $OpenBSD: sa.c,v 1.50 2001/11/21 09:59:26 ho Exp $ */ /* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */ /* @@ -422,6 +422,8 @@ sa_dump (char *header, struct sa *sa) decode_32 (sa->cookies + 8), decode_32 (sa->cookies + 12))); LOG_DBG ((LOG_REPORT, 0, "%s: msgid %08x refcnt %d", header, decode_32 (sa->message_id), sa->refcnt)); + LOG_DBG ((LOG_REPORT, 0, "%s: life secs %llu kb %llu", header, + sa->seconds, sa->kilobytes)); for (proto = TAILQ_FIRST (&sa->protos); proto; proto = TAILQ_NEXT (proto, link)) { |