blib/lib/Net/NfDump/Fields.pm untested

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 4 SCAR -
1 # generated with h2fields.pl
2 package Net::NfDump::Fields;
3 our %NFL_FIELDS_INT = (
4 0x00000001 => 'first',
5 0x00000002 => 'last',
6 0x00000003 => 'received',
7 0x00000004 => 'bytes',
8 0x00000005 => 'packets',
9 0x00000006 => 'outbytes',
10 0x00000007 => 'outpackets',
11 0x00000008 => 'flows',
12 0x00000009 => 'srcport',
13 0x0000000a => 'dstport',
14 0x0000000b => 'flags',
15 0x0000000c => 'srcip',
16 0x0000000d => 'dstip',
17 0x0000000e => 'nextip',
18 0x0000000f => 'srcmask',
19 0x00000010 => 'dstmask',
20 0x00000011 => 'tos',
21 0x00000012 => 'dsttos',
22 0x00000013 => 'srcas',
23 0x00000014 => 'dstas',
24 0x00000015 => 'nextas',
25 0x00000016 => 'prevas',
26 0x00000017 => 'bgpnexthop',
27 0x00000018 => 'proto',
28 0x00000019 => 'srcvlan',
29 0x0000001a => 'dstvlan',
30 0x0000001b => 'insrcmac',
31 0x0000001c => 'outsrcmac',
32 0x0000001d => 'indstmac',
33 0x0000001e => 'outdstmac',
34 0x0000001f => 'mpls',
35 0x00000020 => 'inif',
36 0x00000021 => 'outif',
37 0x00000022 => 'dir',
38 0x00000023 => 'fwd',
39 0x00000024 => 'routerip',
40 0x00000025 => 'engine-type',
41 0x00000026 => 'engine-id',
42 0x00000027 => 'eventtime',
43 0x00000028 => 'connid',
44 0x00000029 => 'icmp-code',
45 0x0000002a => 'icmp-type',
46 0x0000002b => 'xevent',
47 0x0000002c => 'xsrcip',
48 0x0000002d => 'xdstip',
49 0x0000002e => 'xsrcport',
50 0x0000002f => 'xdstport',
51 0x00000030 => 'iacl',
52 0x00000031 => 'iace',
53 0x00000032 => 'ixace',
54 0x00000033 => 'eacl',
55 0x00000034 => 'eace',
56 0x00000035 => 'exace',
57 0x00000036 => 'username',
58 0x00000037 => 'ingressvrfid',
59 0x00000038 => 'eventflag',
60 0x00000039 => 'egressvrfid',
61 0x0000003a => 'blockstart',
62 0x0000003b => 'blockend',
63 0x0000003c => 'blockstep',
64 0x0000003d => 'blocksize',
65 0x0000003e => 'cl',
66 0x0000003f => 'sl',
67 0x00000040 => 'al',
68 0x00000041 => 'event',
69 0x00000042 => 'ingressacl',
70 0x00000043 => 'egressacl',
71 0x00000044 => 'inetfamily',
72 0x00000045 => 'exporterid',
73 0x00000046 => 'exporterid',
74 0x00000047 => 'exporterversion',
75 0x00000048 => 'exporterversion',
76 0x00000049 => 'samplermode',
77 0x0000004a => 'sampleinterval',
78 0x0000004b => 'samplerid',
79 0x00000060 => 'pkts',
80 0x00000061 => 'outpkts',
81 0x00000063 => 'nexthop',
82 0x00000064 => 'router',
83 0x00000065 => 'systype',
84 0x00000066 => 'sysid',
85 0x00000067 => 'icmpcode',
86 0x00000068 => 'icmptype',
87 0x00000069 => 'tcpflags',
88 0x00000070 => 'srcnet',
89 0x00000071 => 'dstnet',
90 0x000000a0 => 'duration',
91 0x000000a1 => 'bps',
92 0x000000a2 => 'pps',
93 0x000000a3 => 'bpp',
94 0x000000c0 => 'port',
95 0x000000c1 => 'ip',
96 0x000000c2 => 'as',
97 0x000000c3 => 'if',
98 0x000000c4 => 'vlan',
99 0x000000c5 => 'net',
100 );
101  
102 our %NFL_FIELDS_TXT = (
103 'first' => 0x00000001,
104 'last' => 0x00000002,
105 'received' => 0x00000003,
106 'bytes' => 0x00000004,
107 'packets' => 0x00000005,
108 'outbytes' => 0x00000006,
109 'outpackets' => 0x00000007,
110 'flows' => 0x00000008,
111 'srcport' => 0x00000009,
112 'dstport' => 0x0000000a,
113 'flags' => 0x0000000b,
114 'srcip' => 0x0000000c,
115 'dstip' => 0x0000000d,
116 'nextip' => 0x0000000e,
117 'srcmask' => 0x0000000f,
118 'dstmask' => 0x00000010,
119 'tos' => 0x00000011,
120 'dsttos' => 0x00000012,
121 'srcas' => 0x00000013,
122 'dstas' => 0x00000014,
123 'nextas' => 0x00000015,
124 'prevas' => 0x00000016,
125 'bgpnexthop' => 0x00000017,
126 'proto' => 0x00000018,
127 'srcvlan' => 0x00000019,
128 'dstvlan' => 0x0000001a,
129 'insrcmac' => 0x0000001b,
130 'outsrcmac' => 0x0000001c,
131 'indstmac' => 0x0000001d,
132 'outdstmac' => 0x0000001e,
133 'mpls' => 0x0000001f,
134 'inif' => 0x00000020,
135 'outif' => 0x00000021,
136 'dir' => 0x00000022,
137 'fwd' => 0x00000023,
138 'routerip' => 0x00000024,
139 'engine-type' => 0x00000025,
140 'engine-id' => 0x00000026,
141 'eventtime' => 0x00000027,
142 'connid' => 0x00000028,
143 'icmp-code' => 0x00000029,
144 'icmp-type' => 0x0000002a,
145 'xevent' => 0x0000002b,
146 'xsrcip' => 0x0000002c,
147 'xdstip' => 0x0000002d,
148 'xsrcport' => 0x0000002e,
149 'xdstport' => 0x0000002f,
150 'iacl' => 0x00000030,
151 'iace' => 0x00000031,
152 'ixace' => 0x00000032,
153 'eacl' => 0x00000033,
154 'eace' => 0x00000034,
155 'exace' => 0x00000035,
156 'username' => 0x00000036,
157 'ingressvrfid' => 0x00000037,
158 'eventflag' => 0x00000038,
159 'egressvrfid' => 0x00000039,
160 'blockstart' => 0x0000003a,
161 'blockend' => 0x0000003b,
162 'blockstep' => 0x0000003c,
163 'blocksize' => 0x0000003d,
164 'cl' => 0x0000003e,
165 'sl' => 0x0000003f,
166 'al' => 0x00000040,
167 'event' => 0x00000041,
168 'ingressacl' => 0x00000042,
169 'egressacl' => 0x00000043,
170 'inetfamily' => 0x00000044,
171 'exporterid' => 0x00000045,
172 'exporterid' => 0x00000046,
173 'exporterversion' => 0x00000047,
174 'exporterversion' => 0x00000048,
175 'samplermode' => 0x00000049,
176 'sampleinterval' => 0x0000004a,
177 'samplerid' => 0x0000004b,
178 'pkts' => 0x00000060,
179 'outpkts' => 0x00000061,
180 'nexthop' => 0x00000063,
181 'router' => 0x00000064,
182 'systype' => 0x00000065,
183 'sysid' => 0x00000066,
184 'icmpcode' => 0x00000067,
185 'icmptype' => 0x00000068,
186 'tcpflags' => 0x00000069,
187 'srcnet' => 0x00000070,
188 'dstnet' => 0x00000071,
189 'duration' => 0x000000a0,
190 'bps' => 0x000000a1,
191 'pps' => 0x000000a2,
192 'bpp' => 0x000000a3,
193 'port' => 0x000000c0,
194 'ip' => 0x000000c1,
195 'as' => 0x000000c2,
196 'if' => 0x000000c3,
197 'vlan' => 0x000000c4,
198 'net' => 0x000000c5,
199 );
200  
201 our %NFL_FIELDS_DEFAULT_AGGR = (
202 0x00000001 => 0x01,
203 0x00000002 => 0x02,
204 0x00000003 => 0x02,
205 0x00000004 => 0x03,
206 0x00000005 => 0x03,
207 0x00000006 => 0x03,
208 0x00000007 => 0x03,
209 0x00000008 => 0x03,
210 0x00000009 => 0x08,
211 0x0000000a => 0x08,
212 0x0000000b => 0x04,
213 0x0000000c => 0x08,
214 0x0000000d => 0x08,
215 0x0000000e => 0x08,
216 0x0000000f => 0x08,
217 0x00000010 => 0x08,
218 0x00000011 => 0x08,
219 0x00000012 => 0x08,
220 0x00000013 => 0x08,
221 0x00000014 => 0x08,
222 0x00000015 => 0x08,
223 0x00000016 => 0x08,
224 0x00000017 => 0x08,
225 0x00000018 => 0x08,
226 0x00000019 => 0x08,
227 0x0000001a => 0x08,
228 0x0000001b => 0x08,
229 0x0000001c => 0x08,
230 0x0000001d => 0x08,
231 0x0000001e => 0x08,
232 0x0000001f => 0x08,
233 0x00000020 => 0x08,
234 0x00000021 => 0x08,
235 0x00000022 => 0x08,
236 0x00000023 => 0x08,
237 0x00000024 => 0x08,
238 0x00000025 => 0x08,
239 0x00000026 => 0x08,
240 0x00000027 => 0x01,
241 0x00000028 => 0x08,
242 0x00000029 => 0x08,
243 0x0000002a => 0x08,
244 0x0000002b => 0x08,
245 0x0000002c => 0x08,
246 0x0000002d => 0x08,
247 0x0000002e => 0x08,
248 0x0000002f => 0x08,
249 0x00000030 => 0x08,
250 0x00000031 => 0x08,
251 0x00000032 => 0x08,
252 0x00000033 => 0x08,
253 0x00000034 => 0x08,
254 0x00000035 => 0x08,
255 0x00000036 => 0x08,
256 0x00000037 => 0x08,
257 0x00000038 => 0x08,
258 0x00000039 => 0x08,
259 0x0000003a => 0x08,
260 0x0000003b => 0x08,
261 0x0000003c => 0x08,
262 0x0000003d => 0x08,
263 0x0000003e => 0x08,
264 0x0000003f => 0x08,
265 0x00000040 => 0x08,
266 0x00000041 => 0x08,
267 0x00000042 => 0x08,
268 0x00000043 => 0x08,
269 0x00000044 => 0x08,
270 0x00000045 => 0x08,
271 0x00000046 => 0x08,
272 0x00000047 => 0x08,
273 0x00000048 => 0x03,
274 0x00000049 => 0x08,
275 0x0000004a => 0x08,
276 0x0000004b => 0x08,
277 0x00000060 => 0x03,
278 0x00000061 => 0x03,
279 0x00000063 => 0x08,
280 0x00000064 => 0x08,
281 0x00000065 => 0x08,
282 0x00000066 => 0x08,
283 0x00000067 => 0x08,
284 0x00000068 => 0x08,
285 0x00000069 => 0x04,
286 0x00000070 => 0x08,
287 0x00000071 => 0x08,
288 0x000000a0 => 0x03,
289 0x000000a1 => 0x03,
290 0x000000a2 => 0x03,
291 0x000000a3 => 0x03,
292 0x000000c0 => 0x08,
293 0x000000c1 => 0x08,
294 0x000000c2 => 0x08,
295 0x000000c3 => 0x08,
296 0x000000c4 => 0x08,
297 0x000000c5 => 0x08,
298 );
299  
300 our %NFL_FIELDS_DEFAULT_SORT = (
301 0x00000001 => 0x10,
302 0x00000002 => 0x10,
303 0x00000003 => 0x10,
304 0x00000004 => 0x20,
305 0x00000005 => 0x20,
306 0x00000006 => 0x20,
307 0x00000007 => 0x20,
308 0x00000008 => 0x20,
309 0x00000009 => 0x10,
310 0x0000000a => 0x10,
311 0x0000000b => 0x10,
312 0x0000000c => 0x10,
313 0x0000000d => 0x10,
314 0x0000000e => 0x10,
315 0x0000000f => 0x10,
316 0x00000010 => 0x10,
317 0x00000011 => 0x10,
318 0x00000012 => 0x10,
319 0x00000013 => 0x10,
320 0x00000014 => 0x10,
321 0x00000015 => 0x10,
322 0x00000016 => 0x10,
323 0x00000017 => 0x10,
324 0x00000018 => 0x10,
325 0x00000019 => 0x10,
326 0x0000001a => 0x10,
327 0x0000001b => 0x10,
328 0x0000001c => 0x10,
329 0x0000001d => 0x10,
330 0x0000001e => 0x10,
331 0x0000001f => 0x00,
332 0x00000020 => 0x10,
333 0x00000021 => 0x10,
334 0x00000022 => 0x10,
335 0x00000023 => 0x10,
336 0x00000024 => 0x10,
337 0x00000025 => 0x10,
338 0x00000026 => 0x10,
339 0x00000027 => 0x10,
340 0x00000028 => 0x10,
341 0x00000029 => 0x10,
342 0x0000002a => 0x10,
343 0x0000002b => 0x10,
344 0x0000002c => 0x10,
345 0x0000002d => 0x10,
346 0x0000002e => 0x10,
347 0x0000002f => 0x10,
348 0x00000030 => 0x10,
349 0x00000031 => 0x10,
350 0x00000032 => 0x10,
351 0x00000033 => 0x10,
352 0x00000034 => 0x10,
353 0x00000035 => 0x10,
354 0x00000036 => 0x10,
355 0x00000037 => 0x10,
356 0x00000038 => 0x10,
357 0x00000039 => 0x10,
358 0x0000003a => 0x10,
359 0x0000003b => 0x10,
360 0x0000003c => 0x10,
361 0x0000003d => 0x10,
362 0x0000003e => 0x10,
363 0x0000003f => 0x10,
364 0x00000040 => 0x10,
365 0x00000041 => 0x10,
366 0x00000042 => 0x10,
367 0x00000043 => 0x10,
368 0x00000044 => 0x10,
369 0x00000045 => 0x10,
370 0x00000046 => 0x10,
371 0x00000047 => 0x10,
372 0x00000048 => 0x10,
373 0x00000049 => 0x10,
374 0x0000004a => 0x10,
375 0x0000004b => 0x10,
376 0x00000060 => 0x20,
377 0x00000061 => 0x20,
378 0x00000063 => 0x10,
379 0x00000064 => 0x10,
380 0x00000065 => 0x10,
381 0x00000066 => 0x10,
382 0x00000067 => 0x10,
383 0x00000068 => 0x10,
384 0x00000069 => 0x10,
385 0x00000070 => 0x10,
386 0x00000071 => 0x10,
387 0x000000a0 => 0x10,
388 0x000000a1 => 0x20,
389 0x000000a2 => 0x20,
390 0x000000a3 => 0x10,
391 0x000000c0 => 0x00,
392 0x000000c1 => 0x00,
393 0x000000c2 => 0x00,
394 0x000000c3 => 0x00,
395 0x000000c4 => 0x00,
396 0x000000c5 => 0x00,
397 );
398  
399 =pod
400  
401 =head1 LIST OF ITEMS SUPPORTED BY Net::NfDump
402  
403 first => Timestamp of the first packet seen (in miliseconds)
404 last => Timestamp of the last packet seen (in miliseconds)
405 received => Timestamp regarding when the packet was received by collector
406 bytes => The number of bytes
407 packets => The number of packets
408 outbytes => The number of output bytes
409 outpackets => The number of output packets
410 flows => The number of flows (aggregated)
411 srcport => Source port
412 dstport => Destination port
413 flags => TCP flags
414 srcip => Source IP address
415 dstip => Destination IP address
416 nextip => IP next hop
417 srcmask => Source mask
418 dstmask => Destination mask
419 tos => Source type of service
420 dsttos => Destination type of service
421 srcas => Source AS number
422 dstas => Destination AS number
423 nextas => BGP Next AS
424 prevas => BGP Previous AS
425 bgpnexthop => BGP next hop
426 proto => IP protocol
427 srcvlan => Source vlan label
428 dstvlan => Destination vlan label
429 insrcmac => In source MAC address
430 outsrcmac => Out destination MAC address
431 indstmac => In destination MAC address
432 outdstmac => Out source MAC address
433 mpls => MPLS labels
434 inif => SNMP input interface number
435 outif => SNMP output interface number
436 dir => Flow directions ingress/egress
437 fwd => Forwarding status
438 routerip => Exporting router IP
439 engine-type => Type of exporter
440 engine-id => Internal SysID of exporter
441 eventtime => NSEL The time that the flow was created
442 connid => NSEL An identifier of a unique flow for the device
443 icmp-code => NSEL ICMP code value
444 icmp-type => NSEL ICMP type value
445 xevent => NSEL Extended event code
446 xsrcip => NSEL Mapped source IPv4 address
447 xdstip => NSEL Mapped destination IPv4 address
448 xsrcport => NSEL Mapped source port
449 xdstport => NSEL Mapped destination port
450 iacl => Hash value or ID of the ACL name
451 iace => Hash value or ID of the ACL name
452 ixace => Hash value or ID of an extended ACE configuration
453 eacl => Hash value or ID of the ACL name
454 eace => Hash value or ID of the ACL name
455 exace => Hash value or ID of an extended ACE configuration
456 username => NSEL username
457 ingressvrfid => NEL NAT ingress vrf id
458 eventflag => NAT event flag (always set to 1 by nfdump)
459 egressvrfid => NAT egress VRF ID
460 blockstart => NAT pool block start
461 blockend => NAT pool block end
462 blockstep => NAT pool block step
463 blocksize => NAT pool block size
464 cl => nprobe latency client_nw_delay_usec
465 sl => nprobe latency server_nw_delay_usec
466 al => nprobe latency appl_latency_usec
467 event => NSEL Extended event code
468 ingressacl => 96 bit value including all items in ACL (iacl, iace, ixace)
469 egressacl => 96 bit value including all items in ACL (eacl, eace, exace)
470 inetfamily => IENT family for src/dst IP address (ipv4 or ipv6); platform dependant
471 exporterid => Exporter IP address
472 exporterid => Exporter Observation Domain ID
473 exporterversion => Version of exporter
474 exporterversion => Naumber of sequence failures of data received from exporter
475 samplermode => Sampling mode
476 sampleinterval => Ssampling interval
477 samplerid => Sampler ID assigned by exporting device
478 pkts => The number of packets
479 outpkts => The number of output packets
480 nexthop => IP next hop
481 router => Exporting router IP
482 systype => Type of exporter
483 sysid => Internal SysID of exporter
484 icmpcode => NSEL ICMP code value
485 icmptype => NSEL ICMP type value
486 tcpflags => TCP flags
487 srcnet => Source IP address
488 dstnet => Destination IP address
489 duration => Flow duration (in milliseconds)
490 bps => Bytes per second
491 pps => Packets per second
492 bpp => Bytes per packet
493 port => Source or destination port (pair field)
494 ip => Source or destination ip address (pair field)
495 as => Source or destination ASn (pair field)
496 if => Input or output interface (pair field)
497 vlan => Source or destination vlan (pair field)
498 net => Source or destination ip address (pair field)
499  
500 =cut
501