summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-13 18:18:43 +0545
committerRenato Botelho <renato@netgate.com>2016-12-13 10:58:29 -0200
commit564dc6fa9a60bb391a6e236315cf9ebba0a5a86d (patch)
treee3ef6601c2c0a3da6c8519cba846b9051a0ca6f8 /src/etc/inc/pfsense-utils.inc
parentb2a682a36655f15458b9fa6ffbc5b57d77d5830b (diff)
downloadpfsense-564dc6fa9a60bb391a6e236315cf9ebba0a5a86d.zip
pfsense-564dc6fa9a60bb391a6e236315cf9ebba0a5a86d.tar.gz
dhcpv6_pd_str_help add default case
When the interface concerned does not yet have its details known (e.g. Track Interface values from upstream have not come yet) then we might as well at least give the caller some reasonable text. e.g. I was adding V6 Static Mappings on an interface that has "Track Interface" and no IPv6 delegation yet. The error message that tries to tell me the type of input I need to put or the static IP offset had no example at all. (cherry picked from commit b790824308b560a38112b5ee94291f6f91107f8c)
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r--src/etc/inc/pfsense-utils.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc
index 77a97da..afbaea7 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -3217,18 +3217,19 @@ function dhcpv6_pd_str_help($pdlen) {
$result = '::x:xxxx:xxxx:xxxx:xxxx';
break;
/*
- * XXX 63, 62 and 61 should use same mask of 60 but it would
- * we let user chose this bit it can end up out of PD network
+ * XXX 63, 62 and 61 should use same mask as 60 but if
+ * we let the user choose this bit it can end up out of PD network
*
- * Leave this with the same of 64 for now until we find a way to
- * let user chose it. The side-effect is users with PD with one
- * of these lengths will not be able to setup DHCP server range
+ * Leave this with the same as 64 for now until we find a way to
+ * let the user choose it. The side-effect is users with PD with one
+ * of these lengths will not be able to setup DHCP server ranges
* for full PD size, only for last /64 network
*/
case 61:
case 62:
case 63:
case 64:
+ default:
$result = '::xxxx:xxxx:xxxx:xxxx';
break;
}
OpenPOWER on IntegriCloud