summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-01 15:46:54 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-01 15:46:54 -0700
commit1e52f18cc9bed60e0b2a4a475c4fd9c8832e7c34 (patch)
treeba1e3cad0503ba897828544476bd32d7e39a3218 /etc/inc/interfaces.inc
parent306b8ff7297d63f68b4ddcc27d1527ca891a6f76 (diff)
parent0c1b9688b33959ab35f95cf02087ce2e427a1420 (diff)
downloadpfsense-1e52f18cc9bed60e0b2a4a475c4fd9c8832e7c34.zip
pfsense-1e52f18cc9bed60e0b2a4a475c4fd9c8832e7c34.tar.gz
Merge commit 'mainline/master'
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc16
1 files changed, 9 insertions, 7 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index bb0fe97..e5515bf 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -148,13 +148,13 @@ function interface_vlan_configure(&$vlan) {
interfaces_bring_up($vlanif);
- /* invalidate interface cache */
- get_interface_arr(true);
+ /* invalidate interface cache */
+ get_interface_arr(true);
- /* all vlans need to spoof their parent mac address, too. see
- * ticket #1514: http://cvstrac.pfsense.com/tktview?tn=1514,33
- */
- foreach($config['interfaces'] as $interfaces) {
+ /* all vlans need to spoof their parent mac address, too. see
+ * ticket #1514: http://cvstrac.pfsense.com/tktview?tn=1514,33
+ */
+ foreach($config['interfaces'] as $interfaces) {
if($interfaces['if'] == $if && $interfaces['spoofmac']) {
mwexec("/sbin/ifconfig " . escapeshellarg($vlanif) .
" link " . escapeshellarg($interfaces['spoofmac']));
@@ -1775,6 +1775,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);
@@ -2658,7 +2660,7 @@ function link_interface_to_vlans($int, $action = "") {
$real_if = get_real_interface($int);
if (is_array($config['vlans']['vlan'])) {
foreach ($config['vlans']['vlan'] as $vlan) {
- if ($real_int == $vlan['if']) {
+ if ($real_if == $vlan['if']) {
if ($action == "update") {
foreach ($config['interfaces'] as $ifname => $ifcfg) {
if ($ifcfg['if'] == $vlan['vlanif'])
OpenPOWER on IntegriCloud