NAME
Squid::Guard::Common - A set of common utility routines
SYNOPSYS
use Squid::Guard::Common;
DESCRIPTION
Makes the following routines available
Squid::Guard::Common::argton( $addr )
Takes an address as dotted decimals, bit-count-mask, or hex, and converts it to a 32 bit word. Taken from ipcalc.pl utility
Squid::Guard::Common::ntoa( $val )
Takes a 32 bit value and converts it to dotted decimal Taken from ipcalc.pl utility
Squid::Guard::Common::network( $addr, $mask )
Takes two arguments as dotted decimals, bit-count-mask, or hex, and calculates the network address in a 32 bit word.
Squid::Guard::Common::broadcast( $addr, $mask )
Takes two arguments as dotted decimals, bit-count-mask, or hex, and calculates the broadcast address in a 32 bit word.