diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-02-12 14:22:22 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-02-12 14:22:22 -0500 |
commit | cc4ed8ae36f05fec006ffabd030a6abed1a3bb43 (patch) | |
tree | 517dff6733095cdba67f508271732ba87f0f8397 | |
parent | ed74be42e97ea0f4c3140c25369ded1e64640e72 (diff) | |
parent | 554e259ed5b2f8c44510d12a9ffcac5d03c19729 (diff) | |
download | pfsense-cc4ed8ae36f05fec006ffabd030a6abed1a3bb43.zip pfsense-cc4ed8ae36f05fec006ffabd030a6abed1a3bb43.tar.gz |
Merge branch 'RELENG_1_2' of http://gitweb.pfsense.org/pfsense/mainline into RELENG_1_2
-rw-r--r-- | etc/inc/interfaces.inc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a70919d..6046d78 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1636,13 +1636,32 @@ function setup_bridge() { $wirelessbridge = true; } + $vfaces = array ( + 'bridge', + 'ppp', + 'sl', + 'gif', + 'faith', + 'lo', + 'ng', + 'vlan', + 'pflog', + 'pfsync', + 'enc', + 'tun', + 'tap', + 'carp' + ); + foreach ($bridgearray[$x] as $bridgeif) { // iterate through all the interfaces in this bridge // append to the bridgecmd for this interface - // only use STP if no wireless interfaces are involved + // only use STP on Ethernet interfaces, not wireless + // nor virtual interfaces + $trimbridgeif = preg_replace("/[0-9]/","", $bridgeif); if($wirelessbridge) $bridgecmd .= " addm $bridgeif "; - elseif (substr($bridgeif,0,4) == "vlan") + elseif(in_array($trimbridgeif, $vfaces)) $bridgecmd .= " addm $bridgeif "; else $bridgecmd .= " addm $bridgeif stp $bridgeif "; |