11 Commits

Author SHA1 Message Date
Peter Haag
19a7b2d7e2 Fix bug in sorting when guessing flow direction. Issue #92 2018-04-20 12:36:00 +02:00
Peter Haag
eaa7a857c8 Update sflow code to commit 7322984 of https://github.com/sflow/sflowtool 2017-12-27 19:56:21 +01:00
Peter Haag
59e0eaec10 Add lz4 compression. Remove old and experimental xstat code - cleanup 2017-12-12 20:48:33 +01:00
Peter Haag
235fad2e71 Fix minor issues and compiler warnings 2017-12-03 15:53:48 +01:00
Peter Haag
29e80e48b5 Change -B behaviour as proposed in issue #59. Should not impact with previous use, but is more flexible 2017-11-05 15:41:47 +01:00
Peter Haag
a35ecdd129 Fix issue #72 - multiple stat output 2017-11-05 14:25:27 +01:00
Peter Haag
f0666be488 Fix compile issues on some platforms 2017-03-18 02:46:58 +01:00
Brian Candler
5fab7794a3 Aggregate using in+out bytes for bidirectional flows
Some sources of data, e.g.  ASA NSEL, record a bidirectional flow record
with separate counters for in/out bytes and in/out packets.  This patch
makes aggregation over "packets", "bytes", "bps" etc look at the *sum* of
the input and output counters.  Previously they would use only the input
counters.

Query types which explicitly look at one direction, like "ibyte" and
"obyte", are unchanged.

Processing of unidirectional flows is not affected, because these store
values in the "in" counters only - the "out" counters are zero, so using the
sum of in+out is the same.

The resulting code is simpler: it doesn't have to calculate both in/out
values everywhere. It also uses accessor functions for all values, which
means no special cases for r->counter[cindex].
2016-06-13 21:41:06 +06:30
Peter Haag
25138d83f6 Fix wrong bps type case in cvs output. Fix opbs ipbs typos 2016-06-05 11:27:35 +02:00
Peter Haag
3039c97c29 Fix obyte, opps and obps output records 2016-06-05 10:17:17 +02:00
phaag
758237b450 Initial git release 1.6.13 2015-10-03 14:06:34 +02:00