Net::Interface

Perl extension to access network interfaces
Download

Net::Interface Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Michael Robinton
  • Publisher web site:
  • http://search.cpan.org/~miker/

Net::Interface Tags


Net::Interface Description

Perl extension to access network interfaces Net::Interface is a Perl module that allows access to the host network interfaces in a manner similar to ifconfig(8). Version 1.00 is a complete re-write and includes support for IPV6 as well as the traditional IPV4.Both read and write access to network device attributes including the creation of new logical and physical interfaces is available where supported by the OS and this module.NOTE: if your OS is not supported, please feel free to contribute new capabilities, patches, etc.... see: Net::Interface::DeveloperANOTHER NOTE: Many of the operations of Net::Interface, particularly those that set interface values require privileged access to OS resources. Wherever possible, Net::Interface will simply fail softly when there are not adequate privileges to perform the requested operation or where the operation is not supported.OPERATIONNet::Interface retrieves information about the network devices on its host in a fashion similar to ifconfig(8) running in a terminal window. With ifconfig(8), the information is returned to the screen and any additional activity on a particular network device goes on without the knowledge of the user. Similarly, Net::Interface only retrieves information about network devices when methods interfaces and new are invoked. Calls to interfaces retrieves information about all network devices known to the host. Calls to new make the same function call to the host library but rather than returning all the interface net device information to the user, it selects out only information for the specified device. The function call to the OS is the same. This information is cached in the object returned to the user interface and it is from this object that data is returned to the user program.To continually monitor a particular device, it is necessary to issue repeat calls to new.SYNOPSIS use Net::Interface qw( cidr2mask full_inet_ntop ipV6compress mac_bin2hex mask2cidr net_symbols type scope inet_aton inet_ntoa inet_pton inet_ntop :afs :pfs :ifs :iffs :iffIN6 :iftype :scope :constants :inet :all :lower :upper ); Requirements: · Perl


Net::Interface Related Software