summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-01-24 06:19:13 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-01-24 06:19:13 +0100
commit0d71694fb3cbff71d504769e0e70a58ebe5f9a0d (patch)
treed36030df25a095ac84a196a466f12456b3f855cb /runtime/netstrm.h
parent6b4d9afccb4297face53fd6bec0fb30b6a8da1c3 (diff)
downloadrsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.tar.gz
rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.tar.bz2
rsyslog-0d71694fb3cbff71d504769e0e70a58ebe5f9a0d.zip
optimize: have dns cache pre-create rsyslog prop_t's
Diffstat (limited to 'runtime/netstrm.h')
-rw-r--r--runtime/netstrm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/netstrm.h b/runtime/netstrm.h
index ee8d9e59..4ef24229 100644
--- a/runtime/netstrm.h
+++ b/runtime/netstrm.h
@@ -49,7 +49,7 @@ BEGINinterface(netstrm) /* name must also be changed in ENDinterface macro! */
rsRetVal (*Send)(netstrm_t *pThis, uchar *pBuf, ssize_t *pLenBuf);
rsRetVal (*Connect)(netstrm_t *pThis, int family, unsigned char *port, unsigned char *host);
rsRetVal (*GetRemoteHName)(netstrm_t *pThis, uchar **pszName);
- rsRetVal (*GetRemoteIP)(netstrm_t *pThis, uchar **pszIP);
+ rsRetVal (*GetRemoteIP)(netstrm_t *pThis, prop_t **ip);
rsRetVal (*SetDrvrMode)(netstrm_t *pThis, int iMode);
rsRetVal (*SetDrvrAuthMode)(netstrm_t *pThis, uchar*);
rsRetVal (*SetDrvrPermPeers)(netstrm_t *pThis, permittedPeers_t*);
@@ -72,10 +72,11 @@ BEGINinterface(netstrm) /* name must also be changed in ENDinterface macro! */
/* v4 */
rsRetVal (*EnableKeepAlive)(netstrm_t *pThis);
ENDinterface(netstrm)
-#define netstrmCURR_IF_VERSION 5 /* increment whenever you change the interface structure! */
+#define netstrmCURR_IF_VERSION 6 /* increment whenever you change the interface structure! */
/* interface version 3 added GetRemAddr()
* interface version 4 added EnableKeepAlive() -- rgerhards, 2009-06-02
* interface version 5 changed return of CheckConnection from void to rsRetVal -- alorbach, 2012-09-06
+ * interface version 6 changed signature of GetRemoteIP() -- rgerhards, 2013-01-21
* */
/* prototypes */