GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::ACL::Match::List(3) User Contributed Perl Documentation Net::ACL::Match::List(3)

Net::ACL::Match::List - Class matching data against one or more access-lists

    use Net::ACL::Match::List;

    # Constructor
    $match = new Net::ACL::Match::List(2, [
        Type    => 'prefix-list'
        Name    => 42
        ] );

    # Accessor Methods
    $rc = $match->match('127.0.0.0/20');

This module match data against one or more access-lists. It only matches if data if data is permitted by all access-lists.

new() - create a new Net::ACL::Match::List object
    $match = new Net::ACL::Match::List(2, [
        Type    => 'prefix-list'
        Name    => 42
        ] );
    

This is the constructor for Net::ACL::Match::List objects. It returns a reference to the newly created object. The first argument is the index of the element that should be matched.

The second argument can have one of the following types:

Net::ACL
An access-list to be matched against.
HASH reference
A reference to a hash passed to Net::ACL->renew()
SCALAR
A scalar passed to Net::ACL->renew()
ARRAY reference
A reference to an array one of the above 3 types. Used to match multiple lists.

match()
The match method verifies if the data is permitted by all access-lists supplied to the constructor. Returns ACL_MATCH if it does, otherwise ACL_NOMATCH.
names()
Return a list with all match lists names.
type()
Returns the type of the first list that is matched - or "undef" if no lists are matched.

Net::ACL::Match, Net::ACL::Rule, Net::ACL

Martin Lorensen <bgp@martin.lorensen.dk>
2003-06-06 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.