Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::libdnet::arp(3pm) [debian man page]

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)
Man Page

8 More Discussions You Might Find Interesting

1. OS X (Apple)

Delete User?

is there a way to delete a mac os x user using unix? (3 Replies)
Discussion started by: CBarraford
3 Replies

2. Shell Programming and Scripting

getting mac from ip (or the contrary)

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)
Discussion started by: chebarbudo
2 Replies

3. UNIX for Advanced & Expert Users

detect mac address modication in linux

Hi, How Detect the mac address modification of a machine...in linux Thanks (1 Reply)
Discussion started by: shivarajM
1 Replies

4. UNIX for Advanced & Expert Users

Monitoring the arp table

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)
Discussion started by: xyzt
1 Replies

5. Shell Programming and Scripting

bash: convert mac address to 16 character format

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)
Discussion started by: rethink
3 Replies

6. UNIX for Dummies Questions & Answers

Comparing the characters of 2 variables

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)
Discussion started by: lsecer
13 Replies

7. Shell Programming and Scripting

Generate unique mac address

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)
Discussion started by: kriti
4 Replies

8. IP Networking

Cannot change mac address

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)
Discussion started by: arpagon
2 Replies