[Syslog-ng-commit] syslog-ng--mainline: implemented DNS cache and
custom hosts file support
Balazs Scheidler
bazsi at balabit.hu
Wed Nov 8 15:16:25 CET 2006
Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-96>
Revision: syslog-ng--mainline--2.0--patch-96
Archive: devel at balabit.hu--other-1
Creator: Balazs Scheidler <bazsi at balabit.hu>
Date: Wed Nov 8 15:16:23 CET 2006
Standard-date: 2006-11-08 14:16:23 GMT
New-files: src/.arch-ids/dnscache.c.id
src/.arch-ids/dnscache.h.id src/dnscache.c
src/dnscache.h tests/unit/.arch-ids/test_dnscache.c.id
tests/unit/test_dnscache.c
Modified-files: ChangeLog src/Makefile.am src/affile.h
src/cfg-grammar.y src/cfg-lex.l src/cfg.c src/cfg.h
src/main.c src/misc.c src/misc.h src/sgroup.c src/sgroup.h
tests/unit/Makefile.am
New-patches: devel at balabit.hu--other-1/syslog-ng--mainline--2.0--patch-96
Summary: implemented DNS cache and custom hosts file support
Keywords:
* src/cfg-grammar.y: added KW_PERSIST_ONLY, KW_DNS_CACHE_HOSTS keywords, dnsmode rule,
removed tripleoption and related options, added
* src/cfg-lex.l: added dnscache specific new keywords,
* src/cfg.c (cfg_init): added a call to dns_cache_set_params,
(cfg_free): free dns_cache_hosts,
* src/main.c (main): call dns_cache_init() and dns_cache_destroy()
* src/misc.c (resolve_hostname): added DNS cache and persistent-only
resolution support
* src/sgroup.c (log_source_group_init): save dns cache params,
(log_source_group_queue): pass use_dns_cache param to resolve_hostname
* src/dnscache.{c,h}: new files
Diff stats:
ChangeLog | 38 ++++++++++++++++++++++++++++++++++++++
src/Makefile.am | 3 ++-
src/affile.h | 1 +
src/cfg-grammar.y | 18 ++++++++----------
src/cfg-lex.l | 2 ++
src/cfg.c | 3 +++
src/cfg.h | 1 +
src/main.c | 3 +++
src/misc.c | 35 +++++++++++++++++++++--------------
src/misc.h | 2 +-
src/sgroup.c | 4 ++--
src/sgroup.h | 1 +
tests/unit/Makefile.am | 6 ++++--
13 files changed, 87 insertions(+), 30 deletions(-)
More information about the Syslog-ng-commit
mailing list