mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 10:35:27 +00:00
Netflow aggregator: skip invalid record, another one for https://github.com/opnsense/core/issues/4796
This commit is contained in:
parent
c0e4f8d683
commit
edd9b6c433
@ -191,7 +191,7 @@ class FlowParser:
|
||||
record['flow_end'] = record['recv_sec'] - (record['sys_uptime_ms'] - record['flow_finish']) / 1000.0
|
||||
record['duration_ms'] = (record['flow_finish'] - record['flow_start'])
|
||||
record['flow_start'] = record['flow_end'] - record['duration_ms'] / 1000.0
|
||||
if 'packets' not in record or 'octets' not in record:
|
||||
if 'packets' not in record or 'octets' not in record or 'src_addr' not in record or 'dst_addr' not in record:
|
||||
# this can't be useful data, skip record
|
||||
continue
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user