summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-02-20 21:02:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-02-20 21:02:12 +0000
commitda0ea3522342ea0ba915962eccb9f072206d505b (patch)
treeeced050071dc677c0d8364791661217feb3bf619 /usr/local/www/services_dhcp.php
parent9e7889d015b43394b761e0e28349cdd8696ff49f (diff)
downloadpfsense-da0ea3522342ea0ba915962eccb9f072206d505b.zip
pfsense-da0ea3522342ea0ba915962eccb9f072206d505b.tar.gz
arp -da static entries after turning off static option
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index 6b9736b..05fd9cf 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -171,10 +171,12 @@ if ($_POST) {
else
unset($config['dhcpd'][$if]['enable']);
- if($_POST['staticarp'] == "yes")
+ if($_POST['staticarp'] == "yes") {
$config['dhcpd'][$if]['staticarp'] = true;
- else
+ } else {
unset($config['dhcpd'][$if]['staticarp']);
+ mwexec("/usr/sbin/arp -da");
+ }
write_config();
OpenPOWER on IntegriCloud