summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-21 16:41:47 +0000
committerErmal <eri@pfsense.org>2010-12-21 16:41:47 +0000
commitd776efd81012bc5b114f4a1a6ef29574466e09c8 (patch)
tree8af66952397cd63b3228e00d431134afe5e38e4a
parenta2ec32a9b2d895e1c1f4740e0e347b8f2b8db6a4 (diff)
downloadpfsense-d776efd81012bc5b114f4a1a6ef29574466e09c8.zip
pfsense-d776efd81012bc5b114f4a1a6ef29574466e09c8.tar.gz
Black list gre interfaces from bridge member list since they cannot be part of a bridge.
-rw-r--r--usr/local/www/interfaces_bridge_edit.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php
index 06d5b94..ec48bc9 100644
--- a/usr/local/www/interfaces_bridge_edit.php
+++ b/usr/local/www/interfaces_bridge_edit.php
@@ -46,6 +46,10 @@ if (!is_array($config['bridges']['bridged']))
$a_bridges = &$config['bridges']['bridged'];
$ifacelist = get_configured_interface_with_descr();
+foreach ($ifacelist as $bif => $bdescr) {
+ if (substr(get_real_interface($bif), 0, 3) == "gre")
+ unset($ifacelist[$bif]);
+}
$id = $_GET['id'];
if (isset($_POST['id']))
OpenPOWER on IntegriCloud