diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-24 06:19:13 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-01-24 06:19:13 +0100 |
commit | 0d71694fb3cbff71d504769e0e70a58ebe5f9a0d (patch) | |
tree | d36030df25a095ac84a196a466f12456b3f855cb /runtime/net.c | |
parent | 6b4d9afccb4297face53fd6bec0fb30b6a8da1c3 (diff) | |
download | rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.tar.gz rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.tar.bz2 rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.zip |
optimize: have dns cache pre-create rsyslog prop_t's
Diffstat (limited to 'runtime/net.c')
-rw-r--r-- | runtime/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/net.c b/runtime/net.c index a6670eca..28a8ef95 100644 --- a/runtime/net.c +++ b/runtime/net.c @@ -1125,7 +1125,7 @@ void debugListenInfo(int fd, char *type) * pay. * 2005-05-16 rgerhards: added IP representation. Must also be NI_MAXHOST */ -rsRetVal cvthname(struct sockaddr_storage *f, uchar *pszHost, uchar *pszHostFQDN, uchar **pszIP, rs_size_t *lenIP) +rsRetVal cvthname(struct sockaddr_storage *f, uchar *pszHost, uchar *pszHostFQDN, prop_t **ip) { DEFiRet; uchar *host; @@ -1137,7 +1137,7 @@ rsRetVal cvthname(struct sockaddr_storage *f, uchar *pszHost, uchar *pszHostFQDN assert(pszHost != NULL); assert(pszHostFQDN != NULL); - iRet = dnscacheLookup(f, &host, &lenHost, pszIP, lenIP); + iRet = dnscacheLookup(f, &host, &lenHost, ip); strcpy((char*)pszHostFQDN, (char*)host); // TODO: optimize this! requires more changes below (dirty tricks ;)) if(iRet == RS_RET_INVALID_SOURCE) { |