Net::Libdnet::Arp(3pm) User Contributed Perl Documentation Net::Libdnet::Arp(3pm)NAME
Net::Libdnet::Arp - high level API to access libdnet arp_* functions
SYNOPSIS
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
", $e->{arp_pa}, $e->{arp_ha});
}
DESCRIPTION
This modules is a higher level abstraction for libdnet arp_* functions.
METHODS
new ()
Returns an object to access arp cache table on success, undef otherwise.
get (scalar)
Returns the mac address of specified IP address, undef otherwise.
add (scalar, scalar)
Adds an entry to arp cache table. Returns 1 on success, undef otherwise. First parameter is the IP address, second is the mac address.
delete (scalar, scalar)
Deletes an entry from arp cache table. Returns 1 on success, undef otherwise. First parameter is the IP address, second is the mac
address.
loop (subref, [ scalarref ])
Calls the specified sub ref for each entry in the arp cache table. The second optional parameter is a scalar ref, to store state
information (if any).
AUTHOR
Patrice <GomoR> Auffret
COPYRIGHT AND LICENSE
You may distribute this module under the terms of the BSD license. See LICENSE file in the source distribution archive.
Copyright (c) 2008-2011, Patrice <GomoR> Auffret
perl v5.14.2 2011-10-15 Net::Libdnet::Arp(3pm)
Check Out this Related Man Page
Net::GPSD3::Cache(3pm) User Contributed Perl Documentation Net::GPSD3::Cache(3pm)NAME
Net::GPSD3::Cache - Net::GPSD3 caching object
SYNOPSIS
use Net::GPSD3;
my $cache=Net::GPSD3->cache; #isa Net::GPSD3::Cache
$cache->add($obj); #obj isa Net::GPSD3::Return::XXX
DESCRIPTION METHODS
add
Adds an object to the cache.
TPV
Returns the last Net::GPSD3::Return::TPV object reported by gpsd.
SKY
Returns the last Net::GPSD3::Return::SKY object reported by gpsd.
DEVICES
Returns the last Net::GPSD3::Return::DEVICES object reported by gpsd.
VERSION
Returns the last Net::GPSD3::Return::VERSION object reported by gpsd.
ERROR
Returns the last Net::GPSD3::Return::ERROR object reported by gpsd.
WATCH
Returns the last Net::GPSD3::Return::WATCH object reported by gpsd.
SUBFRAME
Returns the last Net::GPSD3::Return::SUBFRAME object reported by gpsd.
BUGS
Log on RT and Send to gpsd-dev email list
SUPPORT
DavisNetworks.com supports all Perl applications including this package.
Try gpsd-dev email list
AUTHOR
Michael R. Davis
CPAN ID: MRDVT
STOP, LLC
domain=>michaelrdavis,tld=>com,account=>perl
http://www.stopllc.com/
COPYRIGHT
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
Net::GPSD3
perl v5.14.2 2011-11-09 Net::GPSD3::Cache(3pm)
Hi there,
I need to find a way to check that a remote machine got the correct ip address. I have a dhcp server and need to run some commands after machine M acquired address A.
There are lots of reasons why machine M could have another address:
1) DHCP not reloaded
2) Machine M offline or... (2 Replies)
Man page of netlink says:
---------------------------------
NETLINK_ARPD
For managing the arp table in user space.
----------------------------------
Is it possible to monitor arp table using Netlink? or it's just for manipulating? (1 Reply)
Hi there
Im not quite sure how i can do this, but i am retrieving the mac address from boxes, which in some instances is arriving in its shortened format (i.e. dropping the leading zeros)... for example
0:3:BA:1:E:84
Im trying to figure out a way of converting the single character... (3 Replies)
hi
i am writing a hangman script and am having trouble checking the correct letters against the word
i need the script to compare the word against the letters guessed that are correct so once all the letters within the word have been guessed it will alow me to create a wining senario
eg
... (13 Replies)
Hi,
I want to generate 2000 mac address. Please let me know how to do so.
Perl script or there is some tool availlable wherein i can give the count and it will generate that many mac-address
Thanks,
Kriti (4 Replies)
ubuntu / xubuntu 13.10 and 14.04 (this issue should exist in debian as well)
I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the original mac address, macA, and the new mac address, macB.
I do the following:
ifconfig wlan0... (2 Replies)