zeek/testing/btest/bifs/net_stats_trace.test
Jon Siwek d6d34f3a1f Fix PktSrc::Statistics returning bogus stats.
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.
2011-08-01 16:49:43 -05:00

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();
}