Net::Connection::Sniffer::UtilNet::Connection::Sniffer::Util are netaddr utilities. | |
Download |
Net::Connection::Sniffer::Util Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Michael Robinton
- Publisher web site:
- http://search.cpan.org/~miker/Net-DNS-Codes-0.09/Codes.pm
Net::Connection::Sniffer::Util Tags
Net::Connection::Sniffer::Util Description
Net::Connection::Sniffer::Util are netaddr utilities. Net::Connection::Sniffer::Util are netaddr utilities.SYNOPSIS use Net::Connection::Sniffer::Util; my $ip = newcidr24 Net::Connection::Sniffer::Util($netaddr); my $ipcopy = $ip->copy; if ($someip->within($ip)) { do something... if ($ip->contains($someip)) { do something... if ($ip1->equal($ip2)) { do something__top Net::Connection::Sniffer::Util is a lite weight perl module to do NetAddr::IP like operations on ip addresses in either 32 or 128 bit formats.my $ip = newcidr24; Create a blessed address object with cidr/24 network/broadcast bounds (assumes 32 bit addressing), for ipv6, this will be cidr/120 my $ipcopy = $ip->copy; Copy a blessed network address object to a new blessed object; Returns 'undef' if $ip is not a Net::Connection::Sniffer::Util object.$rv = $someip->within($ip); Check to see if $someip is within the cidr of $ip. i.e. network address equal($ip2); Check if IP1 equal IP2 input: ip2 object returns: true/false Requirements: · Perl
Net::Connection::Sniffer::Util Related Software