summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-06-29 19:41:23 -0500
committerChris Buechler <cmb@pfsense.org>2016-06-29 19:42:23 -0500
commitc6060e225b3f5d7009f0f0f9c81cb96f724d3b98 (patch)
treeab37d3b5472ec6a590ffb78589eaf3003758cabb
parent69eca02c01dfaa4e2312e71868f8b02d60557c0f (diff)
downloadpfsense-c6060e225b3f5d7009f0f0f9c81cb96f724d3b98.zip
pfsense-c6060e225b3f5d7009f0f0f9c81cb96f724d3b98.tar.gz
Restore 2.2.x and prior means of obtaining pfsync nodes to avoid exhausting memory on systems with large state tables. Ticket #6364
-rw-r--r--src/usr/local/www/status_carp.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/usr/local/www/status_carp.php b/src/usr/local/www/status_carp.php
index 93faafe..0f0ec1f 100644
--- a/src/usr/local/www/status_carp.php
+++ b/src/usr/local/www/status_carp.php
@@ -256,16 +256,12 @@ if ($carpcount == 0) {
<div class="panel-body">
<ul>
<?php
-
- $nodes = array();
- $states = pfSense_get_pf_states();
- for ($i = 0; $states != NULL && $i < count($states); $i++) {
- $nodes[$states[$i]['creatorid']] = 1;
- }
- foreach ($nodes as $node => $nenabled) {
- echo "<li>$node</li>";
- }
+ echo "<br />" . gettext("pfSync nodes") . ":<br />";
+ echo "<pre>";
+ system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
+ echo "</pre>";
?>
+
</ul>
</div>
</div>
OpenPOWER on IntegriCloud