summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-25 20:04:29 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-25 20:04:29 +0100
commit3740c82b5c618261993b77311f37887fc958a07a (patch)
tree917255dedf3ba9505875219e95fd89877ba4544c /etc/inc/interfaces.inc
parent2c4301fa6f60fee5f80b51f20177d7fc629e259a (diff)
downloadpfsense-3740c82b5c618261993b77311f37887fc958a07a.zip
pfsense-3740c82b5c618261993b77311f37887fc958a07a.tar.gz
Use proper function now that this call is not needed anymore
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index cf9f2b4..08cd559 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -480,8 +480,7 @@ function interface_bridge_configure(&$bridge, $checkmember = 0) {
$foundgif = false;
foreach ($members as $member) {
$realif = get_real_interface($member);
- $opts = pfSense_get_interface_addresses($realif);
- $mtu = $opts['mtu'];
+ $mtu = get_interface_mtu($realif);
if (substr($realif, 0, 3) == "gif") {
$foundgif = true;
if ($checkmember == 1)
@@ -699,8 +698,7 @@ function interface_lagg_configure($lagg) {
/* Calculate smaller mtu and enforce it */
$smallermtu = 0;
foreach ($members as $member) {
- $opts = pfSense_get_interface_addresses($member);
- $mtu = $opts['mtu'];
+ $mtu = get_interface_mtu($member);
if ($smallermtu == 0 && !empty($mtu))
$smallermtu = $mtu;
else if (!empty($mtu) && $mtu < $smallermtu)
OpenPOWER on IntegriCloud