summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_arp.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-06-21 14:44:30 +0000
committerErmal Luçi <eri@pfsense.org>2008-06-21 14:44:30 +0000
commitcbe3ea96403e554822bd4675cb5565d20ab55fa7 (patch)
treec96401ee12ee200acbd111194e108cc6c92b4ac2 /usr/local/www/diag_arp.php
parent1ad25a3ffbf9ad226d8cb3463ef46c2ff82ad936 (diff)
downloadpfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.zip
pfsense-cbe3ea96403e554822bd4675cb5565d20ab55fa7.tar.gz
Continue interface improvements
Diffstat (limited to 'usr/local/www/diag_arp.php')
-rwxr-xr-xusr/local/www/diag_arp.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/diag_arp.php b/usr/local/www/diag_arp.php
index f93cc54..5d699dd 100755
--- a/usr/local/www/diag_arp.php
+++ b/usr/local/www/diag_arp.php
@@ -193,11 +193,9 @@ foreach ($leases as $value) {
exec("/usr/sbin/arp -an",$rawdata);
$i = 0;
-$ifdescrs = array('wan' => 'WAN', 'lan' => 'LAN');
-
-for ($j = 1; isset($config['interfaces']['opt' . $j]); $j++) {
- $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr'];
-}
+
+/* if list */
+$ifdescrs = get_configured_interface_with_descr();
foreach ($ifdescrs as $key =>$interface) {
$hwif[$config['interfaces'][$key]['if']] = $interface;
OpenPOWER on IntegriCloud