]> git.ipfire.org Git - thirdparty/suricata.git/commit
unix socket: protocol v0.2
authorEric Leblond <eric@regit.org>
Fri, 20 Mar 2015 13:23:12 +0000 (14:23 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 31 Jan 2018 13:25:13 +0000 (14:25 +0100)
commit3d0ba36ba843937f7cc1d2de4cd3b0e20e7d6b9f
tree6389cd1d4556bce2d8f2a2d60cdf5faf6f3ca2cb
parent3fd7256af517185f166894ca437a8cdf6c8f3557
unix socket: protocol v0.2

This patch updates the unix socket protocol. Messages send from
the server and the client have now a '\n' at the end. This allows
both sides to detect easily the end of a command.

As a side effect, this fixes the problem of long answer in
suricatasc. There is now a limit at the arbitrary value of 65536.

Backward compatility is preserved as a client with the older
version of the protocol can still connect to a Suricata with
version 2 of the protocol.
scripts/suricatasc/src/suricatasc.py
src/unix-manager.c