summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-01 02:39:46 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-01 02:39:46 +0000
commit015554f379e2fe15bcce6f7c4db5292645537716 (patch)
tree866b8390912b9fd2c514d9c43eafcd75f19fe603 /etc/inc/interfaces.inc
parente258712681b3e5810107abe92bbf7b889fb9304e (diff)
downloadpfsense-015554f379e2fe15bcce6f7c4db5292645537716.zip
pfsense-015554f379e2fe15bcce6f7c4db5292645537716.tar.gz
Detect MTU size using intval() trying to resolve issue outlined here:
http://forum.pfsense.org/index.php/topic,10666.0.html
Diffstat (limited to 'etc/inc/interfaces.inc')
-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 7c1f6d5..602c350 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -154,7 +154,7 @@ function interfaces_lan_configure() {
/* force all bridged interfaces to use same mtu */
$mtu = get_interface_mtu($config['interfaces'][$lancfg['bridge']]['if']);
- if($mtu == "0") {
+ if(intval($mtu) == 0) {
log_error("An error occurred while trying to obtain the MTU setting. Using 1500.");
$mtu = "1500";
}
OpenPOWER on IntegriCloud