summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-08 09:32:31 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-08 09:32:31 +0545
commit1ee6d09aa6580f5c69da1b4cd3d31b0c34fa1371 (patch)
tree52e711ecbe27e36867b3b5355c21d61cd6450193 /src
parent21749f7ab880ed478be77c3b2db2370c22a4e47c (diff)
downloadpfsense-1ee6d09aa6580f5c69da1b4cd3d31b0c34fa1371.zip
pfsense-1ee6d09aa6580f5c69da1b4cd3d31b0c34fa1371.tar.gz
Improve track6-prefix-id handling
1) The var $iface is not set at lines 2457 or 2464. It is a var that was used higher up local to build_ipv6interface_list() - it is not relevant to the single fields track6-prefix-id--hex and track6-prefix-id-max 2) When the user selects a different track6-interface then trigger update_track6_prefix() which will update the help text track6-prefix-id-range. Related to forum https://forum.pfsense.org/index.php?topic=107962.msg601309#msg601309 This pull request does not directly address the reported issue of the track6-prefix-id not "taking". It just fixes up some code issues that I noticed.
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/interfaces.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php
index 0ff4ce2..a8a0f22 100644
--- a/src/usr/local/www/interfaces.php
+++ b/src/usr/local/www/interfaces.php
@@ -2454,14 +2454,14 @@ if ($pconfig['track6-prefix-id'] == "") {
}
$section->addInput(new Form_Input(
- 'track6-prefix-id--hex' . $iface,
+ 'track6-prefix-id--hex',
'IPv6 Prefix ID',
'text',
sprintf("%x", $pconfig['track6-prefix-id'])
))->setHelp('<span id="track6-prefix-id-range"></span>The value in this field is the (Delegated) IPv6 prefix ID. This determines the configurable network ID based on the dynamic IPv6 connection. The default value is 0.');
$section->addInput(new Form_Input(
- 'track6-prefix-id-max' . $iface,
+ 'track6-prefix-id-max',
null,
'hidden',
0
@@ -3622,6 +3622,10 @@ events.push(function() {
updateTypeSix(this.value);
});
+ $('#track6-interface').on('change', function() {
+ update_track6_prefix();
+ });
+
$('#pppoe-reset-type').on('change', function() {
show_reset_settings(this.value);
});
OpenPOWER on IntegriCloud