summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-12-24 20:47:59 +0545
committerPhil Davis <phil.davis@inf.org>2016-12-24 20:47:59 +0545
commit12e08722bd9264f649e76030dce24259430f2832 (patch)
treea42904f7162e414f7ec3a76b0ee6b4dfcb77d84c /src/usr/local/www/services_dhcp.php
parentb70904493917a5213ee4b752c5466b7d36f884b8 (diff)
downloadpfsense-12e08722bd9264f649e76030dce24259430f2832.zip
pfsense-12e08722bd9264f649e76030dce24259430f2832.tar.gz
Modify DHCP Server messages
Diffstat (limited to 'src/usr/local/www/services_dhcp.php')
-rw-r--r--src/usr/local/www/services_dhcp.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/services_dhcp.php b/src/usr/local/www/services_dhcp.php
index d1361c6..27c64a8 100644
--- a/src/usr/local/www/services_dhcp.php
+++ b/src/usr/local/www/services_dhcp.php
@@ -751,6 +751,8 @@ foreach ($iflist as $ifent => $ifname) {
/* Not static IPv4 or subnet >= 31 */
if ($oc['subnet'] >= 31) {
$have_small_subnet = true;
+ $example_name = $ifname;
+ $example_cidr = $oc['subnet'];
continue;
}
if (!is_ipaddrv4($oc['ipaddr']) || empty($oc['subnet'])) {
@@ -769,11 +771,11 @@ foreach ($iflist as $ifent => $ifname) {
if ($tabscounter == 0) {
if ($have_small_subnet) {
- $sentence2 = gettext("This system's static IPv4 interfaces have subnet 31 or 32.");
+ $sentence2 = sprintf(gettext('%1$s has a CIDR mask of %2$s, which does not contain enough addresses.'), htmlspecialchars($example_name), htmlspecialchars($example_cidr));
} else {
- $sentence2 = gettext("This system has none.");
+ $sentence2 = gettext("This system has no interfaces configured with a static IPv4 address.");
}
- print_info_box(gettext("The DHCP Server can only be enabled on interfaces configured with a static IPv4 address with subnet less than 31.") . " " . $sentence2);
+ print_info_box(gettext("The DHCP Server requires a static IPv4 subnet large enough to serve addresses to clients.") . " " . $sentence2);
include("foot.inc");
exit;
}
OpenPOWER on IntegriCloud