diff options
author | ume <ume@FreeBSD.org> | 2001-08-06 19:40:01 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-08-06 19:40:01 +0000 |
commit | 840f9b9d5fc440f8dec5a341213f2ecc386d9398 (patch) | |
tree | c3f8e1b3989c0a4c9e985039e3d5a549e895d1e9 /sbin/setkey | |
parent | 08fac6b9992aa1d3fb69868cd8d167714c91cfc5 (diff) | |
download | FreeBSD-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 'sbin/setkey')
-rw-r--r-- | sbin/setkey/scriptdump.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/setkey/scriptdump.pl b/sbin/setkey/scriptdump.pl index 33907dc..a1d8adb 100644 --- a/sbin/setkey/scriptdump.pl +++ b/sbin/setkey/scriptdump.pl @@ -32,9 +32,9 @@ foreach $_ (<IN>) { $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; |