mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00

This also installs symlinks from "zeek" and "bro-config" to a wrapper script that prints a deprecation warning. The btests pass, but this is still WIP. broctl renaming is still missing. #239
22 lines
428 B
Text
22 lines
428 B
Text
# @TEST-EXEC-FAIL: zeek -r $TRACES/ftp/ipv4.trace %INPUT
|
|
# @TEST-EXEC: btest-diff .stderr
|
|
|
|
@load-sigs blah.sig
|
|
|
|
@TEST-START-FILE blah.sig
|
|
signature blah
|
|
{
|
|
ip-proto == tcp
|
|
src-port == 21
|
|
payload /.*/
|
|
eval mark_conn
|
|
}
|
|
@TEST-END-FILE
|
|
|
|
# wrong function signature for use with signature 'eval' conditions
|
|
# needs to be reported
|
|
function mark_conn(state: signature_state): bool
|
|
{
|
|
add state$conn$service["blah"];
|
|
return T;
|
|
}
|