mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add test for get_conn_stats BIF before reworking session stats
This commit is contained in:
parent
8fbab9408a
commit
114077fd93
2 changed files with 9 additions and 0 deletions
2
testing/btest/Baseline/core.conn-stats/.stdout
Normal file
2
testing/btest/Baseline/core.conn-stats/.stdout
Normal file
|
@ -0,0 +1,2 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
[total_conns=9, current_conns=5, sess_current_conns=5, num_packets=125, num_fragments=0, max_fragments=0, num_tcp_conns=5, max_tcp_conns=5, cumulative_tcp_conns=6, num_udp_conns=0, max_udp_conns=2, cumulative_udp_conns=2, num_icmp_conns=0, max_icmp_conns=1, cumulative_icmp_conns=1, killed_by_inactivity=3]
|
7
testing/btest/core/conn-stats.zeek
Normal file
7
testing/btest/core/conn-stats.zeek
Normal file
|
@ -0,0 +1,7 @@
|
|||
# @TEST-EXEC: zeek -b -r $TRACES/smtp.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
event net_done(t: time)
|
||||
{
|
||||
print get_conn_stats();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue