diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-25 21:13:14 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-25 21:15:00 +0000 |
commit | e57a441e29e4561bd5c478129a5545ae577ac64e (patch) | |
tree | 15430ffa3da9b465ecbf88e013828ae8a628b187 /etc/inc/interfaces.inc | |
parent | 18011fb964c59ebaee4444ebd50040e73820ef49 (diff) | |
download | pfsense-e57a441e29e4561bd5c478129a5545ae577ac64e.zip pfsense-e57a441e29e4561bd5c478129a5545ae577ac64e.tar.gz |
Resolves #381. If set change interface mtu, somehow this code got lost!
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 767a9e2..fd0c201 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1713,6 +1713,8 @@ function interface_configure($interface = "wan", $reloadall = false) { $cmd .= " mediaopt " . escapeshellarg($wancfg['mediaopt']); mwexec($cmd); } + if (!empty($wancfg['mtu'])) + mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " mtu {$wancfg['mtu']}"); /* invalidate interface/ip/sn cache */ get_interface_arr(true); |