MINOR: log: adds syslog udp message handler and parsing.
authorEmeric Brun <ebrun@haproxy.com>
Tue, 7 Jul 2020 07:43:24 +0000 (09:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Jul 2020 15:50:12 +0000 (17:50 +0200)
commit54932b4408652e3fa0879350a3aca1dda805c7dc
tree983e95009ad13c51bbb0614477efdd25ae432275
parent546488559a161e4783dac7ce5092f5efbd10a7e2
MINOR: log: adds syslog udp message handler and parsing.

This patch introduce a new fd handler used to parse syslog
message on udp.

The parsing function returns level, facility and metadata that
can be immediatly reused to forward message to a log server.

This handler is enabled on udp listeners if proxy is internally set
to mode PR_MODE_SYSLOG
include/haproxy/log.h
include/haproxy/proxy-t.h
src/cfgparse.c
src/log.c
src/proto_udp.c