开发者

Perl module Net::ARP, arp_lookup

开发者 https://www.devze.com 2023-03-06 12:49 出处:网络
I 开发者_C百科want to look up a MAC adrress by an IP. use Net::ARP; $mac = Net::ARP::arp_lookup($dev,\"192.168.1.1\");

I 开发者_C百科want to look up a MAC adrress by an IP.

use Net::ARP;
$mac = Net::ARP::arp_lookup($dev,"192.168.1.1");

But on the CPAN page, they don't explain what is this $dev variable for?


$dev is the network interface to use to try to connect to the given IP address. In the other methods, 'lo' and 'eth0' are given as examples.

0

精彩评论

暂无评论...
验证码 换一张
取 消