diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-12-04 12:11:58 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-12-04 12:11:58 +0100 |
commit | 2dd15ac57327603307c0ae2f5f96fd1392d6f897 (patch) | |
tree | ed15becd6ebc0d6ce3e5ee5d38d7dc211ce5785e /runtime/netstrm.c | |
parent | 56f338f1b4f5f6c428f7aa3fa3f82a13e63e49e7 (diff) | |
parent | d74b4fef35e8a2c3a58fe66720840ae2ee77a02d (diff) | |
download | rsyslog-2dd15ac57327603307c0ae2f5f96fd1392d6f897.tar.gz rsyslog-2dd15ac57327603307c0ae2f5f96fd1392d6f897.tar.bz2 rsyslog-2dd15ac57327603307c0ae2f5f96fd1392d6f897.zip |
Merge branch 'v3-stable' into beta
Conflicts:
ChangeLog
configure.ac
doc/manual.html
Diffstat (limited to 'runtime/netstrm.c')
-rw-r--r-- | runtime/netstrm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/netstrm.c b/runtime/netstrm.c index 2f4a1964..ffa1c578 100644 --- a/runtime/netstrm.c +++ b/runtime/netstrm.c @@ -265,6 +265,17 @@ GetRemoteIP(netstrm_t *pThis, uchar **ppsz) } +/* get remote addr - slim wrapper for NSD driver function */ +static rsRetVal +GetRemAddr(netstrm_t *pThis, struct sockaddr_storage **ppAddr) +{ + DEFiRet; + ISOBJ_TYPE_assert(pThis, netstrm); + iRet = pThis->Drvr.GetRemAddr(pThis->pDrvrData, ppAddr); + RETiRet; +} + + /* open a connection to a remote host (server). * rgerhards, 2008-03-19 */ @@ -320,6 +331,7 @@ CODESTARTobjQueryInterface(netstrm) pIf->AcceptConnReq = AcceptConnReq; pIf->GetRemoteHName = GetRemoteHName; pIf->GetRemoteIP = GetRemoteIP; + pIf->GetRemAddr = GetRemAddr; pIf->SetDrvrMode = SetDrvrMode; pIf->SetDrvrAuthMode = SetDrvrAuthMode; pIf->SetDrvrPermPeers = SetDrvrPermPeers; |