mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
22 lines
503 B
Text
22 lines
503 B
Text
# @TEST-DOC: Test that Redis does not parse if it starts with the server data
|
|
# @TEST-REQUIRES: have-spicy
|
|
#
|
|
# @TEST-EXEC: zeek -b -r $TRACES/redis/start-with-server.pcap %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
@load base/protocols/redis
|
|
|
|
event Redis::command(c: connection, command: Redis::Command)
|
|
{
|
|
print "BAD", command;
|
|
}
|
|
|
|
event Redis::reply(c: connection, dat: Redis::ReplyData)
|
|
{
|
|
print "BAD", dat;
|
|
}
|
|
|
|
event Redis::error(c: connection, dat: Redis::ReplyData)
|
|
{
|
|
print "BAD", dat;
|
|
}
|