Permalink
Browse files

tests updated

  • Loading branch information...
Tomas Podermanski
Tomas Podermanski committed Jul 6, 2018
1 parent e26e798 commit be30c661f5ed016f27d52cb242cf66ff83de6a56
Showing with 18 additions and 1 deletion.
  1. +5 −0 ChangeLog
  2. +1 −1 perl/t/02-read-write-basic.t
  3. +12 −0 perl/t/ds.pl
View
@@ -2,6 +2,11 @@ Revision history for C and Perl extension of nfdump.
1.26 2018-06-xx
- updated to nfdump 1.6.17
- new calculated fields: net, srcnet, dstnet
calculated based on ip and netmask
- new field alias: pkts -> packets, outpkts -> outpackets,
routerip -> router, nextip -> nexthp
- new fields: engine_id, engine_type, flags
- c: better processing of list of exporters
- c: ringbuf support to handle data beween libnf instancec in real time
- c: new functions lnf_ring_init, lnf_ring_info, lnf_ring_read,
@@ -26,7 +26,7 @@ $floww->finish();
$flowr = new Net::NfDump(InputFiles => [ "t/v4_rec.tmp" ] );
while ( my $row = $flowr->fetchrow_hashref() ) {
# diag Dumper(flow2txt($row));
#diag Dumper($DS{'v4_txt'});
# diag Dumper($DS{'v4_txt'});
ok( eq_hash( $DS{'v4_raw'}, $row) );
ok( eq_hash( $DS{'v4_txt'}, flow2txt($row)) );
my $rr = flow2txt($row);
View
@@ -16,6 +16,12 @@
'tcpflags' => '27',
'flags' => '27', # from 1.26
'exporterversion' => '0', # from 1.26
'sampleinterval' => '0', # from 1.26
'samplermode' => '0', # from 1.26
'exporterid' => '0', # from 1.26
'samplerid' => '0', # from 1.26
'srcip' => '147.229.3.135',
'dstip' => '10.255.5.6',
'inetfamily' => 'ipv4',
@@ -95,6 +101,12 @@
'systype' => '0',
'engine-type' => '0', # from 1.25
'exporterversion' => '0', # from 1.26
'sampleinterval' => '0', # from 1.26
'samplermode' => '0', # from 1.26
'exporterid' => '0', # from 1.26
'samplerid' => '0', # from 1.26
'cl' => '100',
'sl' => '200',
'al' => '300',

0 comments on commit be30c66

Please sign in to comment.