summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/interfaces.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index d30866f..8adadc0 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -3117,20 +3117,24 @@ function interface_mtu_wanted_for_pppoe($realif) {
// use the MTU configured on the interface ...
if (is_array($config['interfaces'])) {
foreach ($config['interfaces'] as $interface) {
- if ($interface['if'] != $ppp['if'])
+ if ($interface['if'] != $ppp['if']) {
continue;
- if (!empty($interface['mtu']))
+ }
+ if (!empty($interface['mtu'])) {
$mtu_wanted = intval($interface['mtu']) + 8;
+ }
}
}
// ... unless there is an MTU configured on the port in question
if (!empty($ppp['mtu'])) {
$mtus = explode(',',$ppp['mtu']);
- if (!empty($mtus[$pid]))
+ if (!empty($mtus[$pid])) {
$mtu_wanted = intval($mtus[$pid]) + 8;
+ }
}
- if ($mtu_wanted > $mtu)
+ if ($mtu_wanted > $mtu) {
$mtu = $mtu_wanted;
+ }
}
}
}
OpenPOWER on IntegriCloud