summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-11-29 09:47:04 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2008-11-29 09:47:04 +0100
commit97b89435aad77bd6d9e18747b55d701e360d5aac (patch)
treeb2ed4f1de99fe0a69ec96e37624a5750d3cd504e /runtime/netstrm.h
parent48799529955eff8eb3120b02a356a92a8bd9b2ae (diff)
downloadrsyslog-97b89435aad77bd6d9e18747b55d701e360d5aac.tar.gz
rsyslog-97b89435aad77bd6d9e18747b55d701e360d5aac.tar.xz
rsyslog-97b89435aad77bd6d9e18747b55d701e360d5aac.zip
bugfix: $AllowedSender handled invalidly for plain TCP transport
Diffstat (limited to 'runtime/netstrm.h')
-rw-r--r--runtime/netstrm.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/netstrm.h b/runtime/netstrm.h
index 1a97ef23..3ab790e8 100644
--- a/runtime/netstrm.h
+++ b/runtime/netstrm.h
@@ -61,8 +61,16 @@ BEGINinterface(netstrm) /* name must also be changed in ENDinterface macro! */
* this interface. -- rgerhards, 2008-05-05
*/
rsRetVal (*GetSock)(netstrm_t *pThis, int *pSock);
+ rsRetVal (*GetRemAddr)(netstrm_t *pThis, struct sockaddr_storage **ppAddr);
+ /* getRemAddr() is an aid needed by the legacy ACL system. It exposes the remote
+ * peer's socket addr structure, so that the legacy matching functions can work on
+ * it. Note that this ties netstream drivers to things that can be implemented over
+ * sockets - not really desirable, but not the end of the world... TODO: should be
+ * reconsidered when a new ACL system is build. -- rgerhards, 2008-12-01
+ */
ENDinterface(netstrm)
-#define netstrmCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */
+#define netstrmCURR_IF_VERSION 3 /* increment whenever you change the interface structure! */
+/* interface version 3 added GetRemAddr() */
/* prototypes */
PROTOTYPEObj(netstrm);