From 673903ccc02c1c8079d4f029dcdeb54fa3f303cf Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 13 Apr 2015 17:30:38 +0000 Subject: [PATCH] cleanup ipsec status page and remove custom hooks (which aren't used) --- src/www/diag_ipsec.php | 280 +++++++++++++++-------------------------- 1 file changed, 100 insertions(+), 180 deletions(-) diff --git a/src/www/diag_ipsec.php b/src/www/diag_ipsec.php index 36b3ed30b..d5be3ae10 100644 --- a/src/www/diag_ipsec.php +++ b/src/www/diag_ipsec.php @@ -90,19 +90,15 @@ $status = ipsec_smp_dump_status();
- - - - - - - - - - - - + + + + + + + + @@ -122,138 +118,115 @@ $status = ipsec_smp_dump_status(); } ?> - - - - + + + - - - -
- - - - - Port:' . htmlspecialchars($ikesa['local']['port']); - else - echo 'Unknown'; - if ($ikesa['local']['nat'] != 'false') - echo " NAT-T"; - } - ?> - - {$identity}"; + + + ?> - Port:' . htmlspecialchars($ikesa['remote']['port']); - else - echo 'Unknown'; - if ($ikesa['remote']['nat'] != 'false') - echo " NAT-T"; - } - ?> + Port:' . htmlspecialchars($ikesa['local']['port']); + } else { + echo 'Unknown'; + } + if ($ikesa['local']['nat'] != 'false') { + echo " NAT-T"; + } + } + ?> + + {$identity}"; + } else { + if (empty($identity)) { + echo "Unknown"; + } else { + echo $identity; + } + } + } + ?> + + Port:' . htmlspecialchars($ikesa['remote']['port']); + } else { + echo 'Unknown'; + } + if ($ikesa['remote']['nat'] != 'false') { + echo " NAT-T"; + } + } + ?> - IKEv -
- - - "; - echo htmlspecialchars($ikesa['intalg']); - echo "
"; - echo htmlspecialchars($ikesa['prfalg']); - echo "
"; - echo htmlspecialchars($ikesa['dhgroup']); - ?> -
-
-
-
-
+
-
- - - -
+ + + -
- - - - - - -
+ + + + + +
- -
-
+
- Show child SA entries
- + + - - - @@ -262,6 +235,11 @@ $status = ipsec_smp_dump_status(); foreach ($ikesa['childsalist']['childsa'] as $childsa) { ?> + - - - - - @@ -392,29 +324,17 @@ $status = ipsec_smp_dump_status(); else echo htmlspecialchars($ph1src); ?> - - - -