summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-01-27 18:01:39 -0600
committerJohn Southworth <john.southworth@vyatta.com>2011-01-27 18:01:39 -0600
commit0d96d9894a9b2538b6deaa4ac9f2cb77b1a90000 (patch)
tree6a75df35b71ebe45226e72c37cb603ac4a8e144a /scripts
parent05e78db6ccdc153c2109e215e4ffd639eadb2287 (diff)
downloadvyatta-op-vpn-0d96d9894a9b2538b6deaa4ac9f2cb77b1a90000.tar.gz
vyatta-op-vpn-0d96d9894a9b2538b6deaa4ac9f2cb77b1a90000.zip
Work on new IPsec operational mode script. Fixed inverted SPIs
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-op-vpn.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-op-vpn.pl b/scripts/vyatta-op-vpn.pl
index 4c35997..727b56a 100755
--- a/scripts/vyatta-op-vpn.pl
+++ b/scripts/vyatta-op-vpn.pl
@@ -113,10 +113,10 @@ sub get_tunnel_info {
if (defined($spi)){
if ($line =~ /$spi:.*esp.(.*)\@.*\((.*bytes).*esp.(.*)\@.*\((.*bytes)/)
{
- $tunnel_hash{$connectid}->{_inspi} = $1;
- $tunnel_hash{$connectid}->{_inbytes} = $2;
- $tunnel_hash{$connectid}->{_outspi} = $3;
- $tunnel_hash{$connectid}->{_outbytes} = $4;
+ $tunnel_hash{$connectid}->{_outspi} = $1;
+ $tunnel_hash{$connectid}->{_outbytes} = $2;
+ $tunnel_hash{$connectid}->{_inspi} = $3;
+ $tunnel_hash{$connectid}->{_inbytes} = $4;
}
if ($line =~ /$spi:.*?EVENT_SA_REPLACE in (.*?)s;/){
$tunnel_hash{$connectid}->{_expire} = $1;