mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00

When reading from trace files, 'dropped' and 'link' fields are now just zeroed. When reading from an interface, the values filled in by pcap_stats() are now only used when that function indicates success. Closes #500.
8 lines
210 B
Text
8 lines
210 B
Text
# Checks that accurate stats are returned when reading from a trace file.
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace >output %INPUT
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
event bro_done()
|
|
{
|
|
print net_stats();
|
|
}
|