mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Update arp table before decide for a missing arp entry
This commit is contained in:
parent
00bcbdd085
commit
08443c7a69
@ -404,6 +404,7 @@ function verify_digital_signature($fname) {
|
||||
|
||||
/* obtain MAC address given an IP address by looking at the ARP table */
|
||||
function arp_get_mac_by_ip($ip) {
|
||||
mwexec("/sbin/ping -c 1 -t 1 {$ip}");
|
||||
exec("/usr/sbin/arp -n {$ip}", $arpoutput);
|
||||
|
||||
if ($arpoutput[0]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user