summaryrefslogtreecommitdiffstats
path: root/usr.sbin/setkey/scriptdump.pl
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/setkey/scriptdump.pl')
-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 aa36544..33907dc 100644
--- a/usr.sbin/setkey/scriptdump.pl
+++ b/usr.sbin/setkey/scriptdump.pl
@@ -33,11 +33,11 @@ foreach $_ (<IN>) {
$akey =~ s/\s//g;
$akey =~ s/^/0x/g;
} elsif (/^\treplay=(\d+) flags=(0x\d+) state=/) {
- print "$mode $src $dst $proto $spi -m $ipsecmode";
+ print "$mode $src $dst $proto $spi";
$replay = $1;
print " -u $reqid" if $reqid;
if ($mode eq 'add') {
- print " -r $replay" if $replay;
+ print " -m $ipsecmode -r $replay" if $replay;
if ($proto eq 'esp') {
print " -E $ealgo $ekey" if $ealgo;
print " -A $aalgo $akey" if $aalgo;
OpenPOWER on IntegriCloud