spicy-redis: Separate client/server

This makes the parser more official and splits the client/server out
from each other. Apparently they're different enough to be separate.
This commit is contained in:
Evan Typanski 2024-10-23 11:10:44 -04:00
parent f0f2969a66
commit 757cbbf902
28 changed files with 809 additions and 702 deletions

View file

@ -1,15 +1,15 @@
# @TEST-DOC: Test Zeek parsing a trace file through the RESP analyzer.
# @TEST-DOC: Test Zeek parsing a trace file through the Redis analyzer.
#
# @TEST-EXEC: zeek -Cr $TRACES/redis/loop-redis.trace base/protocols/redis %INPUT >output
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: btest-diff resp.log
event RESP::set_command(c: connection, is_orig: bool, command: RESP::SetCommand)
event Redis::set_command(c: connection, is_orig: bool, command: Redis::SetCommand)
{
print fmt("SET: %s %s", command$key, command$value);
}
event RESP::get_command(c: connection, is_orig: bool, command: RESP::GetCommand)
event Redis::get_command(c: connection, is_orig: bool, command: Redis::GetCommand)
{
print fmt("GET: %s", command);
}