|
NAMEARP - Perl extension for creating ARP packetsSYNOPSISuse Net::ARP; Net::ARP::send_packet('lo', # Device '127.0.0.1', # Source IP '127.0.0.1', # Destination IP 'aa:bb:cc:aa:bb:cc', # Source MAC 'aa:bb:cc:aa:bb:cc', # Destinaton MAC 'reply'); # ARP operation $mac = Net::ARP::get_mac("enp3s0f1"); print "$mac\n"; $mac = Net::ARP::arp_lookup($dev,"192.168.1.1"); print "192.168.1.1 has got mac $mac\n"; IMPORTANTVersion 1.0 will break with the API of PRE-1.0 versions, because the return value of arp_lookup() and get_mac() will no longer be passed as parameter, but returned! I hope this decision is ok as long as we get a cleaner and more perlish API.DESCRIPTIONThis module can be used to create and send ARP packets and to get the mac address of an ethernet interface or ip address.
SEE ALSOman -a arp AUTHORBastian Ballmann [ balle@codekid.net ] http://www.codekid.net COPYRIGHT AND LICENSECopyright (C) 2004-2020 by Bastian BallmannLicense: GPLv2
Visit the GSP FreeBSD Man Page Interface. |