From da0ea3522342ea0ba915962eccb9f072206d505b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 20 Feb 2006 21:02:12 +0000 Subject: arp -da static entries after turning off static option --- usr/local/www/services_dhcp.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/local/www') 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(); -- cgit v1.1