From 840f9b9d5fc440f8dec5a341213f2ecc386d9398 Mon Sep 17 00:00:00 2001 From: ume 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 --- usr.sbin/setkey/scriptdump.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/setkey') diff --git a/usr.sbin/setkey/scriptdump.pl b/usr.sbin/setkey/scriptdump.pl index 33907dc..a1d8adb 100644 --- a/usr.sbin/setkey/scriptdump.pl +++ b/usr.sbin/setkey/scriptdump.pl @@ -32,9 +32,9 @@ foreach $_ () { $akey = $2; $akey =~ s/\s//g; $akey =~ s/^/0x/g; - } elsif (/^\treplay=(\d+) flags=(0x\d+) state=/) { + } elsif (/^\tseq=(0x\d+) replay=(\d+) flags=(0x\d+) state=/) { print "$mode $src $dst $proto $spi"; - $replay = $1; + $replay = $2; print " -u $reqid" if $reqid; if ($mode eq 'add') { print " -m $ipsecmode -r $replay" if $replay; -- cgit v1.1