summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-05-14 17:30:10 -0500
committerChris Buechler <cmb@pfsense.org>2015-05-14 17:30:10 -0500
commitc8f1c7bd70cd156f23a59400e5c738ef8bf5281b (patch)
tree59985510981062abb5747dbce5152b91bb4f7244 /usr/local/www/interfaces.php
parentc58879a9899fca9fe0971d8e94941b9f0bd94f44 (diff)
downloadpfsense-c8f1c7bd70cd156f23a59400e5c738ef8bf5281b.zip
pfsense-c8f1c7bd70cd156f23a59400e5c738ef8bf5281b.tar.gz
Remove the "insert my MAC" feature from interfaces.php. It hasn't worked in a while (credit sbeaver for noticing), and the only thing it tends to accomplish is breaking people's connectivity from the system where they end up duplicating the MAC of their local system.
Diffstat (limited to 'usr/local/www/interfaces.php')
-rw-r--r--usr/local/www/interfaces.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index f1423b1..90b1a24 100644
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -1935,18 +1935,9 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
<td valign="top" class="vncell"><?=gettext("MAC address"); ?></td>
<td class="vtable">
<input name="spoofmac" type="text" class="formfld unknown" id="spoofmac" size="30" value="<?=htmlspecialchars($pconfig['spoofmac']);?>" />
- <?php
- $ip = getenv('REMOTE_ADDR');
- $mac = `/usr/sbin/arp -an | grep {$ip} | cut -d" " -f4`;
- $mac = str_replace("\n","",$mac);
- if ($mac):
- ?>
- <a onclick="document.forms[0].spoofmac.value='<?=$mac?>';" href="#"><?=gettext("Insert my local MAC address"); ?></a>
- <?php endif; ?>
<br />
<?=gettext("This field can be used to modify (\"spoof\") the MAC " .
"address of this interface"); ?><br />
- <?=gettext("(may be required with some cable connections)"); ?><br />
<?=gettext("Enter a MAC address in the following format: xx:xx:xx:xx:xx:xx " .
"or leave blank"); ?>
</td>
OpenPOWER on IntegriCloud