[Syslog-ng-commit] syslog-ng--mainline: implemented bad_hostname
and check_hostname options
Balazs Scheidler
bazsi at balabit.hu
Mon Apr 10 22:47:08 CEST 2006
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-33>
Revision: syslog-ng--mainline--2.0--patch-33
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Mon Apr 10 22:47:03 CEST 2006
Standard-date: 2006-04-10 20:47:03 GMT
Modified-files: ChangeLog NEWS src/cfg-grammar.y
src/cfg-lex.l src/cfg.c src/cfg.h src/logmsg.c
src/logmsg.h src/logreader.c src/logreader.h
src/messages.c tests/unit/test_filters.c
tests/unit/test_msgparse.c tests/unit/test_template.c
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-33
Summary: implemented bad_hostname and check_hostname options
Keywords:
* src/cfg-grammar.y: added KW_BAD_HOSTNAME and KW_CHECK_HOSTNAME tokens
* src/cfg-lex.l: added keywords for KW_BAD_HOSTNAME and KW_CHECK_HOSTNAME
* src/cfg.c (cfg_bad_hostname_set): new function, set global bad_hostname regexp,
(cfg_init): compile bad_hostname_re
* src/log.c (log_msg_parse): added bad_hostname regexp param, and an
implementation of check_hostname() and bad_hostname(),
(log_msg_init): avoid a time(NULL) call,
(log_msg_new): added bad_hostname parameter,
(log_reader_options_init): set options->options and
options->bad_hostname based on the values stored in GlobalConfig
* tests/unit/test_msgparse.c: added testcases for check_hostname()
and bad_hostname()
* src/*.c, src/*.h: followed changes
Diff stats:
ChangeLog | 35 ++++++++++++++++++++++++++++++
NEWS | 2 -
src/cfg-grammar.y | 5 +++-
src/cfg-lex.l | 2 +
src/cfg.c | 29 ++++++++++++++++++++++++-
src/cfg.h | 6 +++++
src/logmsg.c | 39 +++++++++++++++++++++++-----------
src/logmsg.h | 3 +-
src/logreader.c | 8 +++++--
src/logreader.h | 5 ++--
src/messages.c | 2 -
tests/unit/test_filters.c | 2 -
tests/unit/test_msgparse.c | 51 +++++++++++++++++++++++++++++++++------------
tests/unit/test_template.c | 3 +-
14 files changed, 156 insertions(+), 36 deletions(-)
More information about the Syslog-ng-commit
mailing list