line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# $Id: IPAccessExtRule.pm,v 1.10 2003/06/06 18:45:02 unimlo Exp $ |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Net::ACL::IPAccessExtRule; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
7
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
8
|
1
|
|
|
1
|
|
5
|
use vars qw( $VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS @ACL_EIA_INDEX ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
247
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
## Inheritance and Versioning ## |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
@ISA = qw( Net::ACL::Rule ); |
13
|
|
|
|
|
|
|
$VERSION = '0.07'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
## Constants For Argument numbering ## |
16
|
|
|
|
|
|
|
|
17
|
16
|
|
|
16
|
0
|
58
|
sub ACL_EIA_PROTO { 0; }; |
18
|
12
|
|
|
12
|
0
|
37
|
sub ACL_EIA_FROM { 1; }; |
19
|
8
|
|
|
8
|
0
|
24
|
sub ACL_EIA_TO { 2; }; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
## Export Tag Definitions ## |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
@ACL_EIA_INDEX = qw ( ACL_EIA_PROTO ACL_EIA_FROM ACL_EIA_TO ); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
@EXPORT = (); |
26
|
|
|
|
|
|
|
@EXPORT_OK = ( @ACL_EIA_INDEX ); |
27
|
|
|
|
|
|
|
%EXPORT_TAGS = ( |
28
|
|
|
|
|
|
|
index => [ @ACL_EIA_INDEX ], |
29
|
|
|
|
|
|
|
ALL => [ @EXPORT, @EXPORT_OK ] |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
## POD ## |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=pod |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Net::ACL::IPAccessExtRule - Class representing an Extended IP Access-list rule |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This module represents a single extended IP access-list. It implements nothing. |
43
|
|
|
|
|
|
|
It defines the order of the arguments to the query function by defining |
44
|
|
|
|
|
|
|
constants. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 EXPORTS |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
The module exports the following symbols according to the rules and |
49
|
|
|
|
|
|
|
conventions of the Exporter module. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=over 4 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item :index |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
ACL_EIA_PROTO ACL_EIA_FROM ACL_EIA_TO |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=back |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 SEE ALSO |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Net::ACL, Net::ACL::Rule |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 AUTHOR |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Martin Lorensen |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
## End Package Net::ACL::IPAccessExtRule ## |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
1; |