Merge branch 'RELENG_1_2' of http://gitweb.pfsense.org/pfsense/mainline into RELENG_1_2

This commit is contained in:
Scott Ullrich 2009-02-12 14:22:22 -05:00
commit cc4ed8ae36

View File

@ -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 ";