GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::LIBDNET::ARP (3)

.ds Aq ’

NAME

Net::Libdnet::Arp - high level API to access libdnet arp_* functions

CONTENTS

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\n", $e->{arp_pa}, $e->{arp_ha});
   }



DESCRIPTION

This modules is a higher level abstraction for libdnet arp_* functions.

METHODS

<B>newB> () Returns an object to access arp cache table on success, undef otherwise.
<B>getB> (scalar) Returns the mac address of specified IP address, undef otherwise.
<B>addB> (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.
<B>deleteB> (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.
<B>loopB> (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-2012, Patrice <GomoR> Auffret

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::LIBDNET::ARP (3) 2012-11-02

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.