]> The Tcpdump Group git mirrors - tcpdump/commit
Initial support for the REdis Serialization Protocol known as RESP.
authorAndrew Darqui <[email protected]>
Tue, 12 Jan 2016 17:32:55 +0000 (12:32 -0500)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 26 Apr 2016 09:00:21 +0000 (11:00 +0200)
commitfc213645d4399c986f1ce3d55e113828e73ee49d
treec57594dfc2cd419f366a6f752517928f90c4e55c
parent45a212f0a2292aabffbd60bf97d37a83c3117825
Initial support for the REdis Serialization Protocol known as RESP.

This commit adds support for RESP as defined in: http://redis.io/topics/protocol.
It also supports inline commands and pipelining. Due to the popularity of RESP,
numerous services are emerging that use this protocol. You may decode RESP packets
on arbitrary ports using the "-T resp" option.

Example captures can be found in tests/resp_*.

A simple way to test this parser is to start redis-server and then run
redis-cli commands such as "redis-cli set key value".

Traditionally, redis-cli monitor is used to debug redis. Unfortunately,
the "monitor" command can cause significant load on a redis-server in
production. This parser may be used as a non-invasive alternative to
redis-cli monitor.
14 files changed:
Makefile.in
netdissect.h
print-resp.c [new file with mode: 0644]
print-tcp.c
tcp.h
tcpdump.1.in
tcpdump.c
tests/TESTLIST
tests/resp_1.out [new file with mode: 0644]
tests/resp_1_benchmark.pcap [new file with mode: 0644]
tests/resp_2.out [new file with mode: 0644]
tests/resp_2_inline.pcap [new file with mode: 0644]
tests/resp_3.out [new file with mode: 0644]
tests/resp_3_malicious.pcap [new file with mode: 0644]