diff --git a/README b/README index 3b3d3e9..b3e95cc 100644 --- a/README +++ b/README @@ -5,6 +5,10 @@ by Manuel Kasper, Monzoon Networks AG Changes ------- +xxxx Allow NetFlow aggregation version 0 as well as 2 to make NetFlow + exports from Juniper routers work (suggested by Thomas Mangin + ). + v1.3 Changes by Steve Colam : - ...-asstatd.pl now accepts parameters (UDP listen port, sampling rate etc.) on the command line diff --git a/bin/netflow-asstatd.pl b/bin/netflow-asstatd.pl index 02a225b..7e56072 100755 --- a/bin/netflow-asstatd.pl +++ b/bin/netflow-asstatd.pl @@ -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; }