summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-05-20 21:36:34 +0000
committerErmal <eri@pfsense.org>2010-05-20 21:36:55 +0000
commit79f9b9bcdd6f684ff3fc629047609579ed0f1da4 (patch)
treec049b3fe32ffc6f293d57f56deab516d9b400061 /etc/inc
parentfdb085fade815c447e2172a67ffb0164c17d795f (diff)
downloadpfsense-79f9b9bcdd6f684ff3fc629047609579ed0f1da4.zip
pfsense-79f9b9bcdd6f684ff3fc629047609579ed0f1da4.tar.gz
Fixes #610. Do not use the value of mtu blindly test it is set or use 1500 as default.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 659fae1..f01faee 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -692,7 +692,7 @@ function filter_generate_optcfg_array() {
if(!is_ipaddr($oc['ipaddr']) && !empty($oc['ipaddr']))
$oic['type'] = $oc['ipaddr'];
$oic['sn'] = get_interface_subnet($if);
- $oic['mtu'] = $oc['mtu'];
+ $oic['mtu'] = empty($oc['mtu']) ? 1500 : $oc['mtu'];
$oic['descr'] = $ifdetail;
$oic['sa'] = gen_subnet($oic['ip'], $oic['sn']);
$oic['nonat'] = $oc['nonat'];
OpenPOWER on IntegriCloud