summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-09-28 11:12:42 -0400
committerjim-p <jimp@pfsense.org>2016-09-28 11:12:42 -0400
commit632e5f504fed668c328eea3c0af702d1b4998289 (patch)
tree37d7c6b47ec2daf58a762525b43efe87b29aab87 /src/usr/local/www/services_dhcp_edit.php
parentba868cff5137e18774a934986ad9fffff8081f4e (diff)
downloadpfsense-632e5f504fed668c328eea3c0af702d1b4998289.zip
pfsense-632e5f504fed668c328eea3c0af702d1b4998289.tar.gz
Apply static ARP entries more consistently when adding and removing static mapping entries. Fixes #6821
Diffstat (limited to 'src/usr/local/www/services_dhcp_edit.php')
-rw-r--r--src/usr/local/www/services_dhcp_edit.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usr/local/www/services_dhcp_edit.php b/src/usr/local/www/services_dhcp_edit.php
index f599610..0d9ab28 100644
--- a/src/usr/local/www/services_dhcp_edit.php
+++ b/src/usr/local/www/services_dhcp_edit.php
@@ -362,6 +362,13 @@ if ($_POST) {
}
}
+ /* Configure staic ARP entry, or remove ARP entry if this host is dynamic. See https://redmine.pfsense.org/issues/6821 */
+ if ($mapent['arp_table_static_entry']) {
+ mwexec("/usr/sbin/arp -S " . escapeshellarg($mapent['ipaddr']) . " " . escapeshellarg($mapent['mac']));
+ } else {
+ mwexec("/usr/sbin/arp -d " . escapeshellarg($mapent['ipaddr']));
+ }
+
header("Location: services_dhcp.php?if={$if}");
exit;
}
OpenPOWER on IntegriCloud