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::IP(3) User Contributed Perl Documentation Net::ACL::Match::IP(3)

Net::ACL::Match::IP - Class matching IP addresses against an IP or network

    use Net::ACL::Match::IP;

    # Constructor
    $match = new Net::ACL::Match::IP(1,'10.0.0.0/8');

    # Accessor Methods
    $netmaskobj = $match->net($netmaskobj);
    $netmaskobj = $match->net($net);
    $index = $match->index($index);
    $rc = $match->match($ip);

This module is just a wrapper of the Net::Netmask module to allow it to operate automatically with Net::ACL::Rule.

new() - create a new Net::ACL::Match::IP object
    $match = new Net::ACL::Match::IP(1,'10.0.0.0/8');
    

This is the constructor for Net::ACL::Match::IP objects. It returns a reference to the newly created object. The first argument is the argument number of the match method that should be matched. The remaining arguments is parsed directly to the constructor of Net::Netmask.

net()
The net method returns the Net::Netmask object representing the network matched. If called with a Net::Netmask object, the net used for matching is changed to that object. If called with a anything else, the Net::Netmask constructor will be used to convert it to a Net::Netmask object.
index()
The index method returns the index of the argument that will be matched. If called with an argument, the index is changed to that argument.
match()
The match method invoke the match() method of the Net::Netmask object constructed by new(). The index value defines which argument is passed on to new().

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

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.