NAME
Net::ACL::Match::Prefix - Class matching IP network prefixes.
SYNOPSIS
use Net::ACL::Match::Prefix;
# Constructor
$match = new Net::ACL::Match::Prefix('10.0.0.0/8');
# Accessor Methods
$rc = $match->match('10.0.0.0/16'); # ACL_NOMATCH
$rc = $match->match('127.0.0.0/8'); # ACL_NOMATCH
$rc = $match->match('10.0.0.0/8'); # ACL_MATCH
DESCRIPTION
This module is just a wrapper of the Net::Netmask module to allow it to operate automaticly with Net::ACL::Rule.
CONSTRUCTOR
new() - create a new Net::ACL::Match::Prefix object
$match = new Net::ACL::Match::Prefix('10.0.0.0/8');
This is the constructor for Net::ACL::Match::Prefix objects. It returns a reference to the newly created object. Any arguments is parsed directly to the constructor of Net::Netmask.
ACCESSOR METHODS
match()
The method uses Net::Netmask to verify that the base address and the size of the prefixes are the same.
SEE ALSO
Net::Netmask, Net::ACL, Net::ACL::Rule, Net::ACL::Match::IP, Net::ACL::Match
AUTHOR
Martin Lorensen <bgp@martin.lorensen.dk>