+ Allow NetFlow aggregation version 0 as well as 2 to make NetFlow exports from Juniper routers work

This commit is contained in:
Manuel Kasper 2009-10-13 17:28:29 +00:00
parent ba0826caa3
commit c8ce962aed
2 changed files with 5 additions and 1 deletions

4
README
View File

@ -5,6 +5,10 @@ by Manuel Kasper, Monzoon Networks AG <mkasper@monzoon.net>
Changes
-------
xxxx Allow NetFlow aggregation version 0 as well as 2 to make NetFlow
exports from Juniper routers work (suggested by Thomas Mangin
<thomas.mangin@exa-networks.co.uk>).
v1.3 Changes by Steve Colam <steve@colam.co.uk>:
- ...-asstatd.pl now accepts parameters (UDP listen port,
sampling rate etc.) on the command line

View File

@ -88,7 +88,7 @@ while (1) {
$flow_sequence, $engine_type, $engine_id, $aggregation,
$agg_version) = unpack("nnNNNNCCCC", $datagram);
if ($version != 8 || $aggregation != 1 || $agg_version != 2) {
if ($version != 8 || $aggregation != 1 || ($agg_version != 0 && $agg_version != 2)) {
print "unknown version: $version/$aggregation/$agg_version\n";
next;
}