![]() ![]() 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. Calls to interfaces retrieves information about all network devices known to the host. Similarly, Net::Interface only retrieves information about network devices when methods interfaces and new are invoked. 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. Net::Interface retrieves information about the network devices on its host in a fashion similar to ifconfig(8) running in a terminal window. 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. see: Net::Interface::DeveloperĪNOTHER NOTE: Many of the operations of Net::Interface, particularly those that set interface values require privileged access to OS resources. NOTE: if your OS is not supported, please feel free to contribute new capabilities, patches, etc. Version 1.00 is a complete re-write and includes support for IPV6 as well as the traditional IPV4.īoth 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. Net::Interface is a module that allows access to the host network interfaces in a manner similar to ifconfig(8). $naddr6 = inet_pton($ipV6_txt) DESCRIPTION ![]() $full_ipV6_txt = full_inet_ntop($naddr6) To ensure the current string case behavior even if the default changes: use Net::Interface qw(:upper) FUNCTIONS and METHODS = Net::Interface->interfaces() To change that to lowercase: use Net::Interface qw(:lower) See Net::Interface::NetSymbols built specifically for this platform for a detailed list and description of all symbols available on this specific architecture and operating systems version.īy default Net::Interface functions and methods return string IPv6 addresses and MAC addresses in uppercase. :constants is a deprecated synonym for :ifs ![]() On platforms that support IPV6, :iftype :scope :iffIN6 includes IN6_IFF_xxx values on BSD flavored OS's IFxxxx values that exist on this architecture. ) TAGS Note: tags :afs, :pfs, :constants, :ifs Net::Interface - Perl extension to access network interfaces SYNOPSIS use Net::Interface qw( ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |