Revision 7847e55f
Added by Arthur Wiebe over 6 years ago
src/etc/inc/services.inc | ||
---|---|---|
542 | 542 |
log-facility local7; |
543 | 543 |
one-lease-per-client true; |
544 | 544 |
deny duplicates; |
545 |
ping-check true; |
|
546 | 545 |
update-conflict-detection false; |
547 | 546 |
|
548 | 547 |
EOD; |
549 | 548 |
|
549 |
if (!isset($dhcpifconf['pingcheck'])) { |
|
550 |
$dhcpdconf .= "ping-check true;\n"; |
|
551 |
} else { |
|
552 |
$dhcpdconf .= "ping-check false;\n"; |
|
553 |
} |
|
554 |
|
|
550 | 555 |
if (!isset($dhcpifconf['disableauthoritative'])) { |
551 | 556 |
$dhcpdconf .= "authoritative;\n"; |
552 | 557 |
} |
src/usr/local/www/services_dhcp.php | ||
---|---|---|
184 | 184 |
$pconfig['netmask'] = $dhcpdconf['netmask']; |
185 | 185 |
$pconfig['numberoptions'] = $dhcpdconf['numberoptions']; |
186 | 186 |
$pconfig['statsgraph'] = $dhcpdconf['statsgraph']; |
187 |
$pconfig['pingcheck'] = $dhcpdconf['pingcheck']; |
|
187 | 188 |
$pconfig['ddnsclientupdates'] = $dhcpdconf['ddnsclientupdates']; |
188 | 189 |
} |
189 | 190 |
|
... | ... | |
616 | 617 |
$dhcpdconf['statsgraph'] = $_POST['statsgraph']; |
617 | 618 |
enable_rrd_graphing(); |
618 | 619 |
} |
620 |
unset($dhcpdconf['pingcheck']); |
|
621 |
if ($_POST['pingcheck']) { |
|
622 |
$dhcpdconf['pingcheck'] = $_POST['pingcheck']; |
|
623 |
} |
|
619 | 624 |
|
620 | 625 |
// Handle the custom options rowhelper |
621 | 626 |
if (isset($dhcpdconf['numberoptions']['item'])) { |
... | ... | |
1072 | 1077 |
'Enable RRD statistics graphs', |
1073 | 1078 |
$pconfig['statsgraph'] |
1074 | 1079 |
))->setHelp('Enable this to add DHCP leases statistics to the RRD graphs. Disabled by default.'); |
1080 |
$section->addInput(new Form_Checkbox( |
|
1081 |
'pingcheck', |
|
1082 |
'Ping check', |
|
1083 |
'Disable ping check', |
|
1084 |
$pconfig['pingcheck'] |
|
1085 |
))->setHelp('When enabled dhcpd sends a ping to the address being assigned, and if no response has been heard, it assigns the address. Enabled by default.'); |
|
1075 | 1086 |
} |
1076 | 1087 |
|
1077 | 1088 |
// DDNS |
Also available in: Unified diff
add an option to the DHCP server to disable the ping check feature