zeek/testing/btest/core/expired-conn-weird.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

23 lines
565 B
Plaintext

# @TEST-EXEC: zeek -b -r $TRACES/rdp/rdp-to-ssl.pcap %INPUT >out
# @TEST-EXEC: btest-diff out
redef Weird::sampling_threshold = 2;
event my_event(c: connection)
{
Reporter::conn_weird("test!", c, "test2");
Reporter::conn_weird("test!", c, "test2");
Reporter::conn_weird("test!", c, "test2");
Reporter::conn_weird("test!", c, "test2");
}
event connection_state_remove(c: connection)
{
schedule 1sec { my_event(c) };
}
event expired_conn_weird(name: string, id: conn_id, uid: string, addl: string)
{
print "expired_conn_weird", name, id, uid, addl;
}