summaryrefslogtreecommitdiffstats
path: root/usr.sbin/setkey
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 /usr.sbin/setkey
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 'usr.sbin/setkey')
-rw-r--r--usr.sbin/setkey/scriptdump.pl4
1 files changed, 2 insertions, 2 deletions
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 $_ (<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;
OpenPOWER on IntegriCloud