Просмотр исходного кода

ignoring packets from an unknown router has been added to the netflow collector.

root 11 месяцев назад
Родитель
Сommit
7188c7976a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      scripts/eye-statd.pl

+ 3 - 0
scripts/eye-statd.pl

@@ -488,6 +488,9 @@ my ($auth_id,$l_src_ip,$l_dst_ip,$user_ip,$router_id);
 
 #print Dumper($traf_record) if ($debug);
 
+#skip unknown router
+next if ($traf_record->{device_id});
+
 $router_id = $traf_record->{device_id};
 
 #prepare router traffic detailization data only if traffic retention is enabled globally