diff options
author | N0YB <JunkYardMail1@Frontier.com> | 2012-12-07 22:26:28 -0800 |
---|---|---|
committer | N0YB <JunkYardMail1@Frontier.com> | 2012-12-07 22:26:28 -0800 |
commit | 25c1ebd5cb2a358477e81c30b5e73719a94e1107 (patch) | |
tree | 3d8db89eb9438533823f3c8911b3e894d3477637 /usr/local/www/services_dhcp_edit.php | |
parent | 66c73aab00fc80028a1fbf2eceec18380268c55e (diff) | |
download | pfsense-25c1ebd5cb2a358477e81c30b5e73719a94e1107.zip pfsense-25c1ebd5cb2a358477e81c30b5e73719a94e1107.tar.gz |
ARP Table Static Entries from Individual DHCP Static Mappings
Assign individual DHCP static mappings as ARP table static entries.
Useful / necessary for sending WoL magic packets from external services / sources, and for any other purpose that needs a static ARP table entry.
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-x | usr/local/www/services_dhcp_edit.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index 23c942f..d64848e 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -90,12 +90,14 @@ if (isset($id) && $a_maps[$id]) { $pconfig['filename'] = $a_maps[$id]['filename']; $pconfig['rootpath'] = $a_maps[$id]['rootpath']; $pconfig['descr'] = $a_maps[$id]['descr']; + $pconfig['arp_table_static_entry'] = isset($a_maps[$id]['arp_table_static_entry']); } else { $pconfig['mac'] = $_GET['mac']; $pconfig['hostname'] = $_GET['hostname']; $pconfig['filename'] = $_GET['filename']; $pconfig['rootpath'] = $_GET['rootpath']; $pconfig['descr'] = $_GET['descr']; + $pconfig['arp_table_static_entry'] = $_GET['arp_table_static_entry']; } if ($_POST) { @@ -168,6 +170,7 @@ if ($_POST) { $mapent['ipaddr'] = $_POST['ipaddr']; $mapent['hostname'] = $_POST['hostname']; $mapent['descr'] = $_POST['descr']; + $mapent['arp_table_static_entry'] = ($_POST['arp_table_static_entry']) ? true : false; $mapent['filename'] = $_POST['filename']; $mapent['rootpath'] = $_POST['rootpath']; @@ -257,6 +260,13 @@ include("head.inc"); "for your reference (not parsed).");?></span></td> </tr> <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("ARP Table Static Entry");?></td> + <td width="78%" class="vtable"> + <input name="arp_table_static_entry" id="arp_table_static_entry" type="checkbox" value="yes" <?php if ($pconfig['arp_table_static_entry']) echo "checked"; ?>> + <br> <span class="vexpl"><?=gettext("Create an ARP Table Static Entry for this MAC & IP Address pair. ". + "");?></span></td> + </tr> + <tr> <td width="22%" valign="top"> </td> <td width="78%"> <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>"> <input class="formbtn" type="button" value="<?=gettext("Cancel");?>" onclick="history.back()"> |