line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Whois::Object::InetNum::AFRINIC; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw/Net::Whois::Object/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
359
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# whois -h whois.afrinic.net -t inetnum |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# % This is the AfriNIC Whois server. |
11
|
|
|
|
|
|
|
# |
12
|
|
|
|
|
|
|
# inetnum: [mandatory] [single] [primary/look-up key] |
13
|
|
|
|
|
|
|
# netname: [mandatory] [single] [lookup key] |
14
|
|
|
|
|
|
|
# descr: [mandatory] [multiple] [ ] |
15
|
|
|
|
|
|
|
# country: [mandatory] [multiple] [ ] |
16
|
|
|
|
|
|
|
# org: [optional] [single] [inverse key] |
17
|
|
|
|
|
|
|
# admin-c: [mandatory] [multiple] [inverse key] |
18
|
|
|
|
|
|
|
# tech-c: [mandatory] [multiple] [inverse key] |
19
|
|
|
|
|
|
|
# status: [mandatory] [single] [ ] |
20
|
|
|
|
|
|
|
# remarks: [optional] [multiple] [ ] |
21
|
|
|
|
|
|
|
# notify: [optional] [multiple] [inverse key] |
22
|
|
|
|
|
|
|
# mnt-by: [mandatory] [multiple] [inverse key] |
23
|
|
|
|
|
|
|
# mnt-lower: [optional] [multiple] [inverse key] |
24
|
|
|
|
|
|
|
# mnt-domains: [optional] [multiple] [inverse key] |
25
|
|
|
|
|
|
|
# mnt-routes: [optional] [multiple] [inverse key] |
26
|
|
|
|
|
|
|
# mnt-irt: [optional] [multiple] [inverse key] |
27
|
|
|
|
|
|
|
# changed: [mandatory] [multiple] [ ] |
28
|
|
|
|
|
|
|
# source: [mandatory] [single] [ ] |
29
|
|
|
|
|
|
|
# parent: [generated] [multiple] [ ] |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'primary', ['inetnum'] ); |
33
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'mandatory', [ 'inetnum', 'netname', 'descr', 'country', 'admin_c', 'tech_c', 'status', 'mnt_by', 'changed', 'source' ] ); |
34
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'optional', [ 'org', 'remarks', 'notify', 'mnt_lower', 'mnt_domains', 'mnt_routes', 'mnt_irt', 'parent' ] ); |
35
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'single', [ 'inetnum', 'netname', 'geoloc', 'org', 'status', 'source' ] ); |
36
|
|
|
|
|
|
|
__PACKAGE__->attributes( 'multiple', [ 'descr', 'country', 'admin_c', 'tech_c', 'remarks', 'notify', 'mnt_by', 'mnt_lower', 'mnt_domains', 'mnt_routes', 'mnt_irt', 'changed', 'parent' ] ); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Net::Whois::Object::InetNum::AFRINIC - an object representation of a RPSL InetNum block |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
An inetnum object contains information on allocations and assignments |
46
|
|
|
|
|
|
|
of IPv4 address space. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 METHODS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 new ( @options ) |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Constructor for the Net::Whois::Object::InetNum::AFRINIC class |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub new { |
57
|
1
|
|
|
1
|
1
|
4
|
my ( $class, @options ) = @_; |
58
|
|
|
|
|
|
|
|
59
|
1
|
|
|
|
|
4
|
my $self = bless {}, $class; |
60
|
|
|
|
|
|
|
|
61
|
1
|
|
|
|
|
6
|
$self->_init(@options); |
62
|
|
|
|
|
|
|
|
63
|
1
|
|
|
|
|
3
|
return $self; |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 B |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Accessor to the inetnum attribute. |
69
|
|
|
|
|
|
|
Accepts an optional inetnum value, always return the current inetnum value. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 B |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Accessor to the netname attribute. |
74
|
|
|
|
|
|
|
Accepts an optional netname, always return the current netname. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=head2 B |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Accessor to the descr attribute. |
79
|
|
|
|
|
|
|
Accepts an optional descr value to be added to the descr array, |
80
|
|
|
|
|
|
|
always return the current descr array. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 B |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Accessor to the country attribute. |
85
|
|
|
|
|
|
|
Accepts an optional country to be added to the country array, |
86
|
|
|
|
|
|
|
always return the current country array. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 B |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Accessor to the geoloc attribute. |
91
|
|
|
|
|
|
|
Accepts an optional geoloc, always return the current geoloc. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
The location coordinates for the resource |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Location coordinates of the resource. Can take one of the following forms: |
96
|
|
|
|
|
|
|
[-90,90][-180,180] |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 B |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Accessor to the language attribute. |
101
|
|
|
|
|
|
|
Accepts an optional language to be added to the language array, |
102
|
|
|
|
|
|
|
always return the current language array. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Identifies the language. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Valid two-letter ISO 639-1 language code. |
107
|
|
|
|
|
|
|
=head2 B |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Accessor to the 'org' attribute. |
110
|
|
|
|
|
|
|
Accepts an optional org, always return the current org. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Only a single value for the org attribute is allowed in the Inetnum object. |
113
|
|
|
|
|
|
|
This is to ensure only one organisation is responsible for this resource. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 B |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Accessor to the admin_c attribute. |
118
|
|
|
|
|
|
|
Accepts an optional contact to be added to the admin_c array, |
119
|
|
|
|
|
|
|
always return the current admin_c array. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
The NIC-handle of an on-site contact Person object. As more than one person |
122
|
|
|
|
|
|
|
often fulfills a role function, there may be more than one admin_c listed. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
An administrative contact (admin_c) must be someone who is physically |
125
|
|
|
|
|
|
|
located at the site of the network. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=head2 B |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Accessor to the tech_c attribute. |
130
|
|
|
|
|
|
|
Accepts an optional contact to be added to the tech_c array, |
131
|
|
|
|
|
|
|
always return the current tech_c array. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
The NIC-handle of a technical contact Person or Role object. As more than |
134
|
|
|
|
|
|
|
one person often fulfills a role function, there may be more than one tech_c |
135
|
|
|
|
|
|
|
listed. |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
A technical contact (tech_c) must be a person responsible for the |
138
|
|
|
|
|
|
|
day-to-day operation of the network, but does not need to be |
139
|
|
|
|
|
|
|
physically located at the site of the network. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head2 B |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
Accessor to the 'status' attribute. |
144
|
|
|
|
|
|
|
Accepts an optional status, always return the current status. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
The status attribute indicates where the address range represented by an |
147
|
|
|
|
|
|
|
inetnum object sits in a hierarchy and how it is used. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
Status can have one of these values: |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=over 4 |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=item ALLOCATED UNSPECIFIED |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=item ALLOCATED PA |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=item ALLOCATED PI |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=item LIR-PARTITIONED PA |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=item LIR-PARTITIONED PI |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=item SUB-ALLOCATED PA |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
=item ASSIGNED PA |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=item ASSIGNED PI |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=item ASSIGNED ANYCAST |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=item EARLY-REGISTRATION |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=item NOT-SET |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=back |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=head2 B |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
Accessor to the remarks attribute. |
180
|
|
|
|
|
|
|
Accepts an optional remark to be added to the remarks array, |
181
|
|
|
|
|
|
|
always return the current remarks array. |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
General remarks. May include a URL or instructions on where to send abuse |
184
|
|
|
|
|
|
|
complaints. |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=head2 B |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
Accessor to the notify attribute. |
189
|
|
|
|
|
|
|
Accepts an optional notify value to be added to the notify array, |
190
|
|
|
|
|
|
|
always return the current notify array. |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
The email address to which notifications of changes to this object should be |
193
|
|
|
|
|
|
|
sent. |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=head2 B |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
Accessor to the mnt_by attribute. |
198
|
|
|
|
|
|
|
Accepts an optional mnt_by value to be added to the mnt_by array, |
199
|
|
|
|
|
|
|
always return the current mnt_by array. |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
Lists a registered Mntner used to authorize and authenticate changes to this |
202
|
|
|
|
|
|
|
object. |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
=head2 B |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
Accessor to the mnt_lower attribute. |
207
|
|
|
|
|
|
|
Accepts an optional mnt_lower value to be added to the mnt_lower array, |
208
|
|
|
|
|
|
|
always return the current mnt_lower array. |
209
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
Sometimes there is a hierarchy of maintainers. In these cases, mnt_lower is |
211
|
|
|
|
|
|
|
used as well as mnt_by. |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
=head2 B |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
Accessor to the mnt_routes attribute. |
216
|
|
|
|
|
|
|
Accepts an optional mnt_route to be added to the mnt_routes array, |
217
|
|
|
|
|
|
|
always return the current mnt_routes array. |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
The identifier of a registered Mntner object used to control the creation of |
220
|
|
|
|
|
|
|
Route objects associated with the address range specified by the Inetnum |
221
|
|
|
|
|
|
|
object. |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
=head2 B |
224
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
Accessor to the mnt_domains attribute. |
226
|
|
|
|
|
|
|
Accepts an optional mnt_domain to be added to the mnt_domains array, |
227
|
|
|
|
|
|
|
always return the current mnt_domains array. |
228
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
The identifier of a registered Mntner object used to control the creation of |
230
|
|
|
|
|
|
|
Domain objects associated with the address range specified by the Inetnum |
231
|
|
|
|
|
|
|
object. |
232
|
|
|
|
|
|
|
|
233
|
|
|
|
|
|
|
=head2 B |
234
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
Accessor to the changed attribute. |
236
|
|
|
|
|
|
|
Accepts an optional changed value to be added to the changed array, |
237
|
|
|
|
|
|
|
always return the current changed array. |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
The email address of who last updated the database object and the date it |
240
|
|
|
|
|
|
|
occurred. |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
Every time a change is made to a database object, this attribute will show |
243
|
|
|
|
|
|
|
the email address of the person who made those changes. |
244
|
|
|
|
|
|
|
Please use the address format specified in RFC 822 - Standard for |
245
|
|
|
|
|
|
|
the Format of ARPA Internet Text Message and provide the date |
246
|
|
|
|
|
|
|
format using one of the following two formats: YYYYMMDD or YYMMDD. |
247
|
|
|
|
|
|
|
|
248
|
|
|
|
|
|
|
=head2 B |
249
|
|
|
|
|
|
|
|
250
|
|
|
|
|
|
|
Accessor to the source attribute. |
251
|
|
|
|
|
|
|
Accepts an optional source, always return the current source. |
252
|
|
|
|
|
|
|
|
253
|
|
|
|
|
|
|
The database where the object is registered. |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
=head2 B |
256
|
|
|
|
|
|
|
|
257
|
|
|
|
|
|
|
Accessor to the mnt_irt attribute. |
258
|
|
|
|
|
|
|
Accepts an optional mnt_irt value to be added to the mnt_irt array, |
259
|
|
|
|
|
|
|
always return the current mnt_irt array. |
260
|
|
|
|
|
|
|
|
261
|
|
|
|
|
|
|
The identifier of a registered Mntner object used to provide information |
262
|
|
|
|
|
|
|
about a Computer Security Incident Response Team (CSIRT). |
263
|
|
|
|
|
|
|
|
264
|
|
|
|
|
|
|
=cut |
265
|
|
|
|
|
|
|
|
266
|
|
|
|
|
|
|
1; |