summaryrefslogtreecommitdiffstats
path: root/lib/libipsec
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-08-06 19:40:01 +0000
committerume <ume@FreeBSD.org>2001-08-06 19:40:01 +0000
commit840f9b9d5fc440f8dec5a341213f2ecc386d9398 (patch)
treec3f8e1b3989c0a4c9e985039e3d5a549e895d1e9 /lib/libipsec
parent08fac6b9992aa1d3fb69868cd8d167714c91cfc5 (diff)
downloadFreeBSD-src-840f9b9d5fc440f8dec5a341213f2ecc386d9398.zip
FreeBSD-src-840f9b9d5fc440f8dec5a341213f2ecc386d9398.tar.gz
printed current sequence number of the SA. accordingly, changed
into sadb_x_sa2_sequence from sadb_x_sa2_reserved3 in the sadb_x_sa2 structure. Also the output of setkey is changed. sequence number of the sadb is replaced to the end of the output. Obtained from: KAME
Diffstat (limited to 'lib/libipsec')
-rw-r--r--lib/libipsec/pfkey_dump.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/libipsec/pfkey_dump.c b/lib/libipsec/pfkey_dump.c
index 6c74bcd..b673475 100644
--- a/lib/libipsec/pfkey_dump.c
+++ b/lib/libipsec/pfkey_dump.c
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $KAME: pfkey_dump.c,v 1.27 2001/03/12 09:03:38 itojun Exp $ */
+/* $KAME: pfkey_dump.c,v 1.28 2001/06/27 10:46:51 sakane Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
@@ -300,17 +300,15 @@ pfkey_sadump(m)
}
/* replay windoe size & flags */
- printf("\treplay=%u flags=0x%08x ",
+ printf("\tseq=0x%08x replay=%u flags=0x%08x ",
+ m_sa2->sadb_x_sa2_sequence,
m_sa->sadb_sa_replay,
m_sa->sadb_sa_flags);
/* state */
printf("state=");
GETMSGSTR(str_state, m_sa->sadb_sa_state);
-
- printf("seq=%lu pid=%lu\n",
- (u_long)m->sadb_msg_seq,
- (u_long)m->sadb_msg_pid);
+ printf("\n");
/* lifetime */
if (m_lftc != NULL) {
@@ -354,8 +352,12 @@ pfkey_sadump(m)
0 : m_lfts->sadb_lifetime_allocations));
}
+ printf("\tsadb_seq=%lu pid=%lu ",
+ (u_long)m->sadb_msg_seq,
+ (u_long)m->sadb_msg_pid);
+
/* XXX DEBUG */
- printf("\trefcnt=%u\n", m->sadb_msg_reserved);
+ printf("refcnt=%u\n", m->sadb_msg_reserved);
return;
}
OpenPOWER on IntegriCloud