summaryrefslogtreecommitdiffstats
path: root/tcpsrv.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-09-17 15:01:30 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-17 15:01:30 +0200
commit33bb5517ba3a47b95e69b3a155084e2a4ca31f7e (patch)
tree1450412894241e6c5849d809e939e176c5b9db96 /tcpsrv.h
parentad50194ceb52bcf45566f98b801d72163a005718 (diff)
downloadrsyslog-33bb5517ba3a47b95e69b3a155084e2a4ca31f7e.tar.gz
rsyslog-33bb5517ba3a47b95e69b3a155084e2a4ca31f7e.tar.bz2
rsyslog-33bb5517ba3a47b95e69b3a155084e2a4ca31f7e.zip
imtcp: add streamdriver.name module parameter
permits overriding the system default stream driver (gtls, ptcp)
Diffstat (limited to 'tcpsrv.h')
-rw-r--r--tcpsrv.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tcpsrv.h b/tcpsrv.h
index 7fe517a4..a49f6b6c 100644
--- a/tcpsrv.h
+++ b/tcpsrv.h
@@ -57,6 +57,7 @@ struct tcpsrv_s {
netstrms_t *pNS; /**< pointer to network stream subsystem */
int iDrvrMode; /**< mode of the stream driver to use */
uchar *pszDrvrAuthMode; /**< auth mode of the stream driver to use */
+ uchar *pszDrvrName; /**< name of stream driver to use */
uchar *pszInputName; /**< value to be used as input name */
ruleset_t *pRuleset; /**< ruleset to bind to */
permittedPeers_t *pPermPeers;/**< driver's permitted peers */
@@ -112,7 +113,6 @@ BEGINinterface(tcpsrv) /* name must also be changed in ENDinterface macro! */
rsRetVal (*ConstructFinalize)(tcpsrv_t __attribute__((unused)) *pThis);
rsRetVal (*Destruct)(tcpsrv_t **ppThis);
rsRetVal (*configureTCPListen)(tcpsrv_t*, uchar *pszPort, int bSuppOctetFram);
- //rsRetVal (*SessAccept)(tcpsrv_t *pThis, tcpLstnPortList_t*, tcps_sess_t **ppSess, netstrm_t *pStrm);
rsRetVal (*create_tcp_socket)(tcpsrv_t *pThis);
rsRetVal (*Run)(tcpsrv_t *pThis);
/* set methods */
@@ -151,8 +151,10 @@ BEGINinterface(tcpsrv) /* name must also be changed in ENDinterface macro! */
rsRetVal (*SetLinuxLikeRatelimiters)(tcpsrv_t *pThis, int interval, int burst);
/* added v14 -- rgerhards, 2013-07-28 */
rsRetVal (*SetDfltTZ)(tcpsrv_t *pThis, uchar *dfltTZ);
+ /* added v15 -- rgerhards, 2013-09-17 */
+ rsRetVal (*SetDrvrName)(tcpsrv_t *pThis, uchar *pszName);
ENDinterface(tcpsrv)
-#define tcpsrvCURR_IF_VERSION 13 /* increment whenever you change the interface structure! */
+#define tcpsrvCURR_IF_VERSION 15 /* increment whenever you change the interface structure! */
/* change for v4:
* - SetAddtlFrameDelim() added -- rgerhards, 2008-12-10
* - SetInputName() added -- rgerhards, 2008-12-10