summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ipsec.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-26 16:24:19 +0000
committerErmal <eri@pfsense.org>2014-02-26 16:24:19 +0000
commitdf0878b018976493e312eac39915125b1c543db6 (patch)
tree1194fa9495a03ea3fd688bf456061bfc53bcecb5 /usr/local/www/diag_ipsec.php
parentddfe5e4380b059a553b790dfb3de81d039ebd481 (diff)
downloadpfsense-df0878b018976493e312eac39915125b1c543db6.zip
pfsense-df0878b018976493e312eac39915125b1c543db6.tar.gz
Add a function to read the status of connections/SAs/SPDs from smp plugin of StrongSWAN. No need to go through the setkey dumps
Diffstat (limited to 'usr/local/www/diag_ipsec.php')
-rw-r--r--usr/local/www/diag_ipsec.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/diag_ipsec.php b/usr/local/www/diag_ipsec.php
index 68f7dc8..f780587 100644
--- a/usr/local/www/diag_ipsec.php
+++ b/usr/local/www/diag_ipsec.php
@@ -74,9 +74,7 @@ if (!is_array($config['ipsec']['phase2']))
$a_phase2 = &$config['ipsec']['phase2'];
-$spd = ipsec_dump_spd();
-$sad = ipsec_dump_sad();
-$mobile = ipsec_dump_mobile();
+$status = ipsec_smp_dump_status();
?>
OpenPOWER on IntegriCloud