summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_bridge_edit.php
diff options
context:
space:
mode:
authorLorenz Schori <lo@znerol.ch>2017-07-25 14:21:06 +0200
committerLorenz Schori <lo@znerol.ch>2017-07-25 16:53:53 +0200
commitb060e08c9dd701b56b5163321b5e9a79f90b1f23 (patch)
treeb81795af7138be98343dd2a4e8b13c4295c93457 /src/usr/local/www/interfaces_bridge_edit.php
parenteb0a2a9466ceba7777a7ad1bcabee06e4c4ba92b (diff)
downloadpfsense-b060e08c9dd701b56b5163321b5e9a79f90b1f23.zip
pfsense-b060e08c9dd701b56b5163321b5e9a79f90b1f23.tar.gz
Add support for IPv6 AUTO_LINKLOCAL flag on bridge interfaces
Diffstat (limited to 'src/usr/local/www/interfaces_bridge_edit.php')
-rw-r--r--src/usr/local/www/interfaces_bridge_edit.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/local/www/interfaces_bridge_edit.php b/src/usr/local/www/interfaces_bridge_edit.php
index 2db6f54..e589d4c 100644
--- a/src/usr/local/www/interfaces_bridge_edit.php
+++ b/src/usr/local/www/interfaces_bridge_edit.php
@@ -35,6 +35,7 @@ if (!is_array($config['bridges']['bridged'])) {
function is_aoadv_used($pconfig) {
if (($pconfig['static'] !="") ||
($pconfig['private'] != "") ||
+ $pconfig['ip6linklocal'] ||
($pconfig['stp'] != "") ||
($pconfig['span'] != "") ||
($pconfig['edge'] != "") ||
@@ -69,6 +70,7 @@ $id = $_REQUEST['id'];
if (isset($id) && $a_bridges[$id]) {
$pconfig['enablestp'] = isset($a_bridges[$id]['enablestp']);
+ $pconfig['ip6linklocal'] = isset($a_bridges[$id]['ip6linklocal']);
$pconfig['descr'] = $a_bridges[$id]['descr'];
$pconfig['bridgeif'] = $a_bridges[$id]['bridgeif'];
$pconfig['members'] = $a_bridges[$id]['members'];
@@ -289,6 +291,10 @@ if ($_POST['save']) {
$ifpriority = "";
$ifpathcost = "";
+ if ($_POST['ip6linklocal']) {
+ $bridge['ip6linklocal'] = true;
+ }
+
foreach ($ifacelist as $ifn => $ifdescr) {
if ($_POST[$ifn] <> "") {
if ($i > 0) {
@@ -516,6 +522,13 @@ $section->addInput(new Form_Select(
true
))->setHelp('Mark an interface as a "private" interface. A private interface does not forward any traffic to any other port that is also a private interface. ');
+$section->addInput(new Form_Checkbox(
+ 'ip6linklocal',
+ 'Enable IPv6 auto linklocal',
+ null,
+ $pconfig['ip6linklocal']
+))->setHelp('When enabled, the AUTO_LINKLOCAL flag is set on the bridge interface and cleared on every member interface. This is required when the bridge interface is used for stateless autoconfiguration. ');
+
// STP section
// ToDo: - Should disable spanning tree section when not checked
$section->addInput(new Form_Checkbox(
OpenPOWER on IntegriCloud