mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Bump Spicy to pull in fix.
Includes a new regression test. Closes #4501.
This commit is contained in:
parent
9ffc87a90e
commit
e494fb5d19
3 changed files with 48 additions and 1 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 4fe22b915e5f1ac26c08412fed2bfc2dbc36bfb3
|
||||
Subproject commit 992444228151b193379e93403f8d486a6bf37878
|
|
@ -0,0 +1,8 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
INIT, (192.168.72.14, 3254/tcp, 65.54.95.206, 80/tcp), True
|
||||
INIT, (192.168.72.14, 3254/tcp, 65.54.95.206, 80/tcp), False
|
||||
DONE, (192.168.72.14, 3254/tcp, 65.54.95.206, 80/tcp), False
|
||||
INIT, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), True
|
||||
INIT, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), False
|
||||
DONE, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), False
|
||||
DONE, (192.168.72.14, 3257/tcp, 65.54.95.14, 80/tcp), True
|
39
testing/btest/spicy/tcp-eod-behavior-on-destroy.zeek
Normal file
39
testing/btest/spicy/tcp-eod-behavior-on-destroy.zeek
Normal file
|
@ -0,0 +1,39 @@
|
|||
# @TEST-REQUIRES: have-spicy
|
||||
#
|
||||
# @TEST-EXEC: spicyz -d foo.spicy foo.evt -o foo.hlto
|
||||
# @TEST-EXEC: zeek -Cr ${TRACES}/http/206_example_b.pcap foo.hlto "Spicy::enable_print=T" >output 2>&1
|
||||
# @TEST-EXEC: btest-diff output
|
||||
#
|
||||
# @TEST-DOC: Exercise &eod behavior when processing is aborted without a regular connection shutdown; regression test for Zeek #4501.
|
||||
#
|
||||
# @TEST-START-FILE foo.spicy
|
||||
module foo;
|
||||
|
||||
import zeek;
|
||||
|
||||
public type X = unit {
|
||||
: bytes &eod;
|
||||
|
||||
on %init() {
|
||||
print "INIT", zeek::conn_id(), zeek::is_orig();
|
||||
}
|
||||
|
||||
on %done() {
|
||||
print "DONE", zeek::conn_id(), zeek::is_orig(); # should not be called for instance not reaching &eod
|
||||
}
|
||||
|
||||
on %error(e: string) {
|
||||
print "ERROR: %s - should not show up" % e;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
# @TEST-END-FILE
|
||||
|
||||
# @TEST-START-FILE foo.evt
|
||||
import foo;
|
||||
|
||||
protocol analyzer X over TCP:
|
||||
parse with foo::X,
|
||||
port 0/tcp-65535/tcp;
|
||||
# @TEST-END-FILE
|
Loading…
Add table
Add a link
Reference in a new issue