summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;