From 232bdaf61fa5b080a8119ad5ad3e757604fc6a7e Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Mon, 6 Aug 2001 19:40:01 +0000 Subject: 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 --- lib/libipsec/pfkey_dump.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'lib/libipsec') diff --git a/lib/libipsec/pfkey_dump.c b/lib/libipsec/pfkey_dump.c index 6c74bcdaf784f..b6734758c7a53 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; } -- cgit v1.3