logread: add support for non-transparent-framing for Syslog over TCP
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Wed, 1 Apr 2015 23:14:01 +0000 (01:14 +0200)
committerJohn Crispin <blogic@openwrt.org>
Mon, 30 Mar 2015 13:55:24 +0000 (15:55 +0200)
commit6fbafd7d5b2835d00eb9d1684e7c6ccf907177b8
treeec77ab72390c05982d5854d506cfb8af0fbf8b1e
parentc0138bae8ed746e30f3d3a591e1615f2a705b1a5
logread: add support for non-transparent-framing for Syslog over TCP

https://tools.ietf.org/html/rfc6587#section-3.4.2
the idea is to add \n or \0 as message trailer so it's easier
to find message end

v2: simplify, use \n by default, with optional \0

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
log/logread.c