summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-06-15 06:30:19 +0000
committerErmal Luçi <eri@pfsense.org>2009-06-15 06:30:19 +0000
commit2f3446dba97007c6446f6fe8e079c5ef3874fef1 (patch)
tree3ad2d08a731401e2e6f0080a8ff109ba7665495c /etc
parent7b5f455bba3e815e89b206eefd27e405c5afe67b (diff)
downloadpfsense-2f3446dba97007c6446f6fe8e079c5ef3874fef1.zip
pfsense-2f3446dba97007c6446f6fe8e079c5ef3874fef1.tar.gz
More vlan interface name change fixes.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 63d36e7..25afae1 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -829,7 +829,7 @@ function interface_bring_down($interface = "wan", $destroy = false) {
}
if ($destroy == true) {
- if (preg_match("/^tun|^ppp|^ovpn|^gif|^gre|^lagg|^bridge|^vlan/i", $realif))
+ if (preg_match("/^tun|^ppp|^ovpn|^gif|^gre|^lagg|^bridge|vlan/i", $realif))
mwexec("/sbin/ifconfig {$realif} destroy");
}
@@ -2377,6 +2377,8 @@ function is_altq_capable($int) {
if (in_array($int_family[0], $capable))
return true;
+ else if (stristr($int_family, "vlan")) /* VLANs are name $parent.$vlan now */
+ return true;
else
return false;
}
OpenPOWER on IntegriCloud