summaryrefslogtreecommitdiffstats
path: root/runtime/netstrm.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-05-05 11:45:41 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-05-05 11:45:41 +0200
commitb9cbb0d696571134b2ed061804a8ed9fb0d91955 (patch)
tree76652a6e080a40eeafaa1a186b28350d8f8580d1 /runtime/netstrm.c
parent1784eab77049dc1e606688c03b1b82a2c4d95a3f (diff)
downloadrsyslog-b9cbb0d696571134b2ed061804a8ed9fb0d91955.tar.gz
rsyslog-b9cbb0d696571134b2ed061804a8ed9fb0d91955.tar.xz
rsyslog-b9cbb0d696571134b2ed061804a8ed9fb0d91955.zip
made imgssapi work with new netstrm driver model
there were a couple of things where imgssapi was not compatible with the new encapsulation. I did a somewhat dirty fix. The real solution would be to turn gssapi functionality into a netstream driver, which is too much for now (after all, we want to release some time AND we need to have the code mature in practice before we go for the next target...).
Diffstat (limited to 'runtime/netstrm.c')
-rw-r--r--runtime/netstrm.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/netstrm.c b/runtime/netstrm.c
index e270335c..47c67a53 100644
--- a/runtime/netstrm.c
+++ b/runtime/netstrm.c
@@ -239,6 +239,22 @@ Connect(netstrm_t *pThis, int family, uchar *port, uchar *host)
}
+/* Provide access to the underlying OS socket. This is dirty
+ * and scheduled to be removed. Does not work with all nsd drivers.
+ * See comment in netstrm interface for details.
+ * rgerhards, 2008-05-05
+ */
+static rsRetVal
+GetSock(netstrm_t *pThis, int *pSock)
+{
+ DEFiRet;
+ ISOBJ_TYPE_assert(pThis, netstrm);
+ assert(pSock != NULL);
+ iRet = pThis->Drvr.GetSock(pThis->pDrvrData, pSock);
+ RETiRet;
+}
+
+
/* queryInterface function
*/
BEGINobjQueryInterface(netstrm)
@@ -264,6 +280,7 @@ CODESTARTobjQueryInterface(netstrm)
pIf->GetRemoteHName = GetRemoteHName;
pIf->GetRemoteIP = GetRemoteIP;
pIf->SetDrvrMode = SetDrvrMode;
+ pIf->GetSock = GetSock;
finalize_it:
ENDobjQueryInterface(netstrm)