Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/setkey sync with the current usage. from kame.



details:   https://anonhg.NetBSD.org/src/rev/c5a8f7b4704b
branches:  trunk
changeset: 494982:c5a8f7b4704b
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Jul 18 23:32:19 2000 +0000

description:
sync with the current usage.  from kame.

note th at the file will not be installed into locations like
/usr/sibn or /sbin.

diffstat:

 sbin/setkey/scriptdump.pl |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 8c6bb0194e5a -r c5a8f7b4704b sbin/setkey/scriptdump.pl
--- a/sbin/setkey/scriptdump.pl Tue Jul 18 23:29:48 2000 +0000
+++ b/sbin/setkey/scriptdump.pl Tue Jul 18 23:32:19 2000 +0000
@@ -1,6 +1,6 @@
 #! @LOCALPREFIX@/bin/perl
 #
-#      $NetBSD: scriptdump.pl,v 1.1 2000/06/13 15:15:26 itojun Exp $
+#      $NetBSD: scriptdump.pl,v 1.2 2000/07/18 23:32:19 itojun Exp $
 #
 
 if ($< != 0) {
@@ -35,11 +35,11 @@
                $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;



Home | Main Index | Thread Index | Old Index