summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-12 16:43:33 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-12 16:43:33 +0000
commit7d6076f3fdb2b5b28ec0b92ba443bb4957c369d8 (patch)
tree6d0102fcfd9833c2966bd5f0dfddf7cab1200313 /etc
parent3f70e61864304d7884871cfcb09c8962caf6ea03 (diff)
downloadpfsense-7d6076f3fdb2b5b28ec0b92ba443bb4957c369d8.zip
pfsense-7d6076f3fdb2b5b28ec0b92ba443bb4957c369d8.tar.gz
Use the pfSense module calls for getting interface mac. Improves speed and correctnes.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index b734086..773c22f 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2869,8 +2869,8 @@ function get_interface_mtu($interface) {
}
function get_interface_mac($interface) {
+
$macinfo = pfSense_get_interface_addresses($interface);
-
return $macinfo["macaddr"];
}
OpenPOWER on IntegriCloud