summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-28 14:21:58 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-28 14:21:58 +0200
commita3ff7eaf859cd6e91f68421b70c4a46d5a41ff2c (patch)
treee707e999f119f68297ad15072561b894dfd21ce2 /runtime/netstrm.c
parent10e06c833a55b972c0e4943eea3223f21ad73736 (diff)
downloadrsyslog-a3ff7eaf859cd6e91f68421b70c4a46d5a41ff2c.tar.gz
rsyslog-a3ff7eaf859cd6e91f68421b70c4a46d5a41ff2c.tar.xz
rsyslog-a3ff7eaf859cd6e91f68421b70c4a46d5a41ff2c.zip
added $ActionSendStreamDriverMode config directive
Diffstat (limited to 'runtime/netstrm.c')
-rw-r--r--runtime/netstrm.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/netstrm.c b/runtime/netstrm.c
index be754aae..bbb6ee30 100644
--- a/runtime/netstrm.c
+++ b/runtime/netstrm.c
@@ -175,6 +175,19 @@ Rcv(netstrm_t *pThis, uchar *pBuf, ssize_t *pLenBuf)
}
+/* set the driver mode
+ * rgerhards, 2008-04-28
+ */
+static rsRetVal
+SetDrvrMode(netstrm_t *pThis, int iMode)
+{
+ DEFiRet;
+ ISOBJ_TYPE_assert(pThis, netstrm);
+ iRet = pThis->Drvr.SetMode(pThis->pDrvrData, iMode);
+ RETiRet;
+}
+
+
/* send a buffer. On entry, pLenBuf contains the number of octets to
* write. On exit, it contains the number of octets actually written.
* If this number is lower than on entry, only a partial buffer has
@@ -252,6 +265,7 @@ CODESTARTobjQueryInterface(netstrm)
pIf->AcceptConnReq = AcceptConnReq;
pIf->GetRemoteHName = GetRemoteHName;
pIf->GetRemoteIP = GetRemoteIP;
+ pIf->SetDrvrMode = SetDrvrMode;
finalize_it:
ENDobjQueryInterface(netstrm)