summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_lan.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-08-05 16:32:23 +0000
committerErmal Luçi <eri@pfsense.org>2008-08-05 16:32:23 +0000
commit675aac3d62d50fd00f9012ceff0ffe2b63a155f1 (patch)
treefb025ef81fc32edc93f987d1727d595b9a7bc436 /usr/local/www/interfaces_lan.php
parent3c43b7289323e7c1257ac34bd001d4167b94dd3b (diff)
downloadpfsense-675aac3d62d50fd00f9012ceff0ffe2b63a155f1.zip
pfsense-675aac3d62d50fd00f9012ceff0ffe2b63a155f1.tar.gz
Remove code for creating old way bridges. Anything has to be done through the new bridging code. Sorry not upgradable!
Diffstat (limited to 'usr/local/www/interfaces_lan.php')
-rwxr-xr-xusr/local/www/interfaces_lan.php51
1 files changed, 1 insertions, 50 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index 45919ee..f31e367 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -44,7 +44,6 @@ $optcfg = &$config['interfaces']['lan'];
$pconfig['ipaddr'] = $lancfg['ipaddr'];
$pconfig['subnet'] = $lancfg['subnet'];
-$pconfig['bridge'] = $lancfg['bridge'];
$pconfig['disableftpproxy'] = isset($lancfg['disableftpproxy']);
@@ -56,32 +55,6 @@ if (isset($lancfg['wireless'])) {
if ($_POST) {
- if ($_POST['bridge']) {
- /* double bridging? */
- $iflist = get_configured_interface_list(true, true);
- foreach ($iflist as $if) {
- if ($if != $index) { /* XXX: totaly bogus */
- if ($config['interfaces'][$if]['bridge'] == $_POST['bridge']) {
- //$input_errors[] = "Optional interface {$if} " .
- // "({$config['interfaces'][$if]['descr']}) is already bridged to " .
- // "the specified interface.";
- } else if ($config['interfaces'][$if]['bridge'] == $if) {
- //$input_errors[] = "Optional interface {$if} " .
- // "({$config['interfaces'][$if]['descr']}) is already bridged to " .
- // "this interface.";
- }
- }
- }
- if ($config['interfaces'][$_POST['bridge']]['bridge']) {
- //$input_errors[] = "The specified interface is already bridged to " .
- // "another interface.";
- }
- /* captive portal on? */
- if (isset($config['captiveportal']['enable'])) {
- //$input_errors[] = "Interfaces cannot be bridged while the captive portal is enabled.";
- }
- }
-
unset($input_errors);
$pconfig = $_POST;
$changedesc = "LAN Interface: ";
@@ -119,13 +92,6 @@ if ($_POST) {
system_start_ftp_helpers();
}
- $bridge = discover_bridge($lancfg['if'], filter_translate_type_to_real_interface($lancfg['bridge']));
- if($bridge <> "-1") {
- destroy_bridge($bridge);
- }
-
- $lancfg['bridge'] = $_POST['bridge'];
-
if (($lancfg['ipaddr'] != $_POST['ipaddr']) || ($lancfg['subnet'] != $_POST['subnet'])) {
update_if_changed("IP Address", &$lancfg['ipaddr'], $_POST['ipaddr']);
update_if_changed("subnet", &$lancfg['subnet'], $_POST['subnet']);
@@ -158,7 +124,7 @@ include("head.inc");
function enable_change(enable_over) {
return;
var endis;
- endis = !((document.iform.bridge.selectedIndex == 0) || enable_over);
+ endis = enable_over;
document.iform.ipaddr.disabled = endis;
document.iform.subnet.disabled = endis;
}
@@ -178,21 +144,6 @@ function enable_change(enable_over) {
<tr>
<td colspan="2" valign="top" class="listtopic">IP configuration</td>
</tr>
- <tr>
- <td width="22%" valign="top" class="vncellreq">Bridge with</td>
- <td width="78%" class="vtable">
- <select name="bridge" class="formselect" id="bridge" onChange="enable_change(false)">
- <option <?php if (!$pconfig['bridge']) echo "selected";?> value="">none</option>
- <?php
- $opts = get_configured_interface_with_descr();
- foreach ($opts as $opt => $optname):
- if ($opt == "lan") continue;?>
- <option <?php if ($opt == $pconfig['bridge']) echo "selected";?> value="<?=htmlspecialchars($opt);?>">
- <?=htmlspecialchars($optname);?>
- </option>
- <?php endforeach; ?>
- </select> </td>
- </tr>
<tr>
<td width="22%" valign="top" class="vncellreq">IP address</td>
<td width="78%" class="vtable">
OpenPOWER on IntegriCloud