| Net::Libdnet::Arp(3pm) | User Contributed Perl Documentation | Net::Libdnet::Arp(3pm) |
Net::Libdnet::Arp - high level API to access libdnet arp_* functions
use Net::Libdnet::Arp;
my $h = Net::Libdnet::Arp->new;
my $mac = $h->get('10.0.0.1');
my $sucess = $h->add('10.0.0.1', '00:11:22:33:44:55');
my $sucess = $h->delete('10.0.0.1', '00:11:22:33:44:55');
my $data;
$h->loop(\&arp_print, \$data);
sub arp_print {
my ($e, $data) = @_;
printf("%s at %s\n", $e->{arp_pa}, $e->{arp_ha});
}
This modules is a higher level abstraction for libdnet arp_* functions.
Patrice <GomoR> Auffret
You may distribute this module under the terms of the BSD license. See LICENSE file in the source distribution archive.
Copyright (c) 2008-2012, Patrice <GomoR> Auffret
| 2018-11-01 | perl v5.28.0 |