diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-06 16:41:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-06-06 16:41:55 +0200 |
commit | 2b9e5ac193ea91817ff17851a4a16a42a5b87fdb (patch) | |
tree | 207ffb12ed68bc729ac9809b69cc00552c598037 /tools | |
parent | 223b103ccca416effbed2d61798e4aad7d421cc3 (diff) | |
download | rsyslog-2b9e5ac193ea91817ff17851a4a16a42a5b87fdb.tar.gz rsyslog-2b9e5ac193ea91817ff17851a4a16a42a5b87fdb.tar.bz2 rsyslog-2b9e5ac193ea91817ff17851a4a16a42a5b87fdb.zip |
added a first implementation of a DNS name cache
this still has a couple of weaknesses, like no size limit, no expiration
of entries, suboptimal algorithms -- but it should perform better than
what we had previously. Implementation will be improved based on
feedback during the next couple of releases
Diffstat (limited to 'tools')
-rw-r--r-- | tools/syslogd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c index 4c512ac2..bbace3de 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -124,6 +124,7 @@ #include "vm.h" #include "prop.h" #include "rsconf.h" +#include "dnscache.h" #include "sd-daemon.h" /* definitions for objects we access */ @@ -1567,6 +1568,7 @@ InitGlobalClasses(void) /* TODO: the dependency on net shall go away! -- rgerhards, 2008-03-07 */ pErrObj = "net"; CHKiRet(objUse(net, LM_NET_FILENAME)); + dnscacheInit(); finalize_it: if(iRet != RS_RET_OK) { @@ -1615,6 +1617,7 @@ GlobalClassExit(void) CHKiRet(objUse(errmsg, CORE_COMPONENT)); CHKiRet(objUse(module, CORE_COMPONENT)); #endif + dnscacheDeinit(); rsrtExit(); /* *THIS* *MUST/SHOULD?* always be the first class initilizer being called (except debug)! */ RETiRet; |