mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge branch 'RELENG_1_2' of http://gitweb.pfsense.org/pfsense/mainline into RELENG_1_2
This commit is contained in:
commit
cc4ed8ae36
@ -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 ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user