summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorDavid Wood <david@wood2.org.uk>2015-10-11 03:53:16 +0100
committerDavid Wood <david@wood2.org.uk>2015-10-11 04:38:10 +0100
commit2e4cad90499f968474c4eca0852f352f1526b617 (patch)
tree27fc60bc15eacf920a2ea6cc1b73dc0a170e4fea /src/etc
parent80f142db9a7c2e1353bf8132669394c7144399d0 (diff)
downloadpfsense-2e4cad90499f968474c4eca0852f352f1526b617.zip
pfsense-2e4cad90499f968474c4eca0852f352f1526b617.tar.gz
Coding style fixes in interface_mtu_wanted_for_pppoe()
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