diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-08-30 18:29:46 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-08-30 18:29:46 +0200 |
commit | d11e8221a8b9592bca7f219cc3d3cf3359273ba1 (patch) | |
tree | 2a0de52ef2086b24d562999b1ff23b3a3151dea9 /tcpsrv.c | |
parent | a5abbddb5c04b95a6e51a93f71516cee280c54c4 (diff) | |
download | rsyslog-d11e8221a8b9592bca7f219cc3d3cf3359273ba1.tar.gz rsyslog-d11e8221a8b9592bca7f219cc3d3cf3359273ba1.tar.bz2 rsyslog-d11e8221a8b9592bca7f219cc3d3cf3359273ba1.zip |
milestone: defaultTZ can be set in msg obj (via imtcp)
... but parser does not yet use it.
Diffstat (limited to 'tcpsrv.c')
-rw-r--r-- | tcpsrv.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -134,6 +134,7 @@ addNewLstnPort(tcpsrv_t *pThis, uchar *pszPort, int bSuppOctetFram) /* create entry */ CHKmalloc(pEntry = MALLOC(sizeof(tcpLstnPortList_t))); CHKmalloc(pEntry->pszPort = ustrdup(pszPort)); + strcpy((char*)pEntry->dfltTZ, (char*)pThis->dfltTZ); pEntry->pSrv = pThis; pEntry->pRuleset = pThis->pRuleset; pEntry->bSuppOctetFram = bSuppOctetFram; @@ -916,6 +917,7 @@ BEGINobjConstruct(tcpsrv) /* be sure to specify the object type also in END macr pThis->addtlFrameDelim = TCPSRV_NO_ADDTL_DELIMITER; pThis->bDisableLFDelim = 0; pThis->OnMsgReceive = NULL; + pThis->dfltTZ[0] = '\0'; pThis->ratelimitInterval = 0; pThis->ratelimitBurst = 10000; pThis->bUseFlowControl = 1; @@ -1107,6 +1109,15 @@ SetAddtlFrameDelim(tcpsrv_t *pThis, int iDelim) } +static rsRetVal +SetDfltTZ(tcpsrv_t *pThis, uchar *tz) +{ + DEFiRet; + ISOBJ_TYPE_assert(pThis, tcpsrv); + strcpy((char*)pThis->dfltTZ, (char*)tz); + RETiRet; +} + /* Set the input name to use -- rgerhards, 2008-12-10 */ static rsRetVal SetInputName(tcpsrv_t *pThis, uchar *name) @@ -1266,6 +1277,7 @@ CODESTARTobjQueryInterface(tcpsrv) pIf->SetKeepAlive = SetKeepAlive; pIf->SetUsrP = SetUsrP; pIf->SetInputName = SetInputName; + pIf->SetDfltTZ = SetDfltTZ; pIf->SetAddtlFrameDelim = SetAddtlFrameDelim; pIf->SetbDisableLFDelim = SetbDisableLFDelim; pIf->SetSessMax = SetSessMax; |