mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add btest for conn_generic_packet_threshold_crossed event
This commit is contained in:
parent
b0d2713547
commit
d8ee27bdcc
2 changed files with 31 additions and 0 deletions
16
testing/btest/core/conn-generic-packet-threshold.zeek
Normal file
16
testing/btest/core/conn-generic-packet-threshold.zeek
Normal file
|
@ -0,0 +1,16 @@
|
|||
# @TEST-EXEC: echo "Generic threshold crossed:" > out
|
||||
# @TEST-EXEC: zeek -b -C -r $TRACES/http/get.trace %INPUT >> out
|
||||
# @TEST-EXEC: zeek -b -C -r $TRACES/dns/long-connection.pcap %INPUT >> out
|
||||
# @TEST-EXEC: zeek -b -C -r $TRACES/communityid/sctp.pcap %INPUT >> out
|
||||
# @TEST-EXEC: echo "\nGeneric threshold not crossed:" >> out
|
||||
# @TEST-EXEC: zeek -b -C -r $TRACES/tcp/syn.pcap %INPUT >> out
|
||||
# @TEST-EXEC: zeek -b -C -r $TRACES/dns/dns-binds.pcap %INPUT >> out
|
||||
# @TEST-EXEC: zeek -b -C -r $TRACES/http/get.trace %INPUT ConnThreshold::generic_packet_threshold=15 >> out
|
||||
|
||||
# @TEST-EXEC: btest-diff out
|
||||
|
||||
event new_connection(c: connection)
|
||||
{ print fmt("new_connection: %s", c$id); }
|
||||
|
||||
event conn_generic_packet_threshold_crossed(c: connection)
|
||||
{ print fmt("conn_generic_packet_threshold_crossed: %s", c$id); }
|
Loading…
Add table
Add a link
Reference in a new issue