mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
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:
parent
f0f2969a66
commit
757cbbf902
28 changed files with 809 additions and 702 deletions
|
@ -4,11 +4,11 @@
|
|||
# @TEST-EXEC: btest-diff output
|
||||
# @TEST-EXEC: btest-diff resp.log
|
||||
|
||||
redef RESP::ports += {
|
||||
redef Redis::ports += {
|
||||
10625/tcp,
|
||||
};
|
||||
|
||||
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 the whole command because these have extra data that's worth capturing.
|
||||
print fmt("SET: %s %s expires in %d milliseconds", command$key, command$value, command$px);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue