Michael Robinton > Net-Connection-Sniffer-0.31 > Net::Connection::Sniffer::Util

Download:
Net-Connection-Sniffer-0.31.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.02   Source  

NAME ^

Net::Connection::Sniffer::Util -- 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

DESCRIPTION ^

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.

COPYRIGHT ^

Copyright 2006, Michael Robinton <michael@bizsystems.com>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (except as noted otherwise in individuals sub modules) published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

AUTHOR ^

Michael Robinton <michael@bizsystems.com>

SEE ALSO ^

        man (3) NetAddr::IP::Util