diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-18 16:51:40 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-18 16:51:40 +0200 |
commit | 2de4964affabc1ccf61bc72426a468fc871a54d0 (patch) | |
tree | 507645c42f6c22793d37ded28983d008d71bdb10 /runtime/msg.h | |
parent | df9012f755a305ef48037f10fcc9413406894e66 (diff) | |
download | rsyslog-2de4964affabc1ccf61bc72426a468fc871a54d0.tar.gz rsyslog-2de4964affabc1ccf61bc72426a468fc871a54d0.tar.xz rsyslog-2de4964affabc1ccf61bc72426a468fc871a54d0.zip |
optimized handling of MSG part in msg object
WARNING: currently, message repeation processing is disabled, must
be reenabled (but prefer to do some other tests first)
Diffstat (limited to 'runtime/msg.h')
-rw-r--r-- | runtime/msg.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index 48c1090e..4cdb0762 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -73,7 +73,8 @@ struct msg { * need to preserve cryptographic verifiers. */ int iLenRawMsg; /* length of raw message */ short offAfterPRI; /* offset, at which raw message WITHOUT PRI part starts in pszRawMsg */ - uchar *pszMSG; /* the MSG part itself */ + short offMSG; /* offset at which the MSG part starts in pszRawMsg */ + //uchar *pszMSG; /* the MSG part itself */ int iLenMSG; /* Length of the MSG part */ int iLenTAG; /* Length of the TAG part */ uchar *pszHOSTNAME; /* HOSTNAME from syslog message */ @@ -156,7 +157,7 @@ rsRetVal MsgSetRcvFromIP(msg_t *pMsg, uchar* pszRcvFromIP); void MsgAssignHOSTNAME(msg_t *pMsg, char *pBuf); void MsgSetHOSTNAME(msg_t *pMsg, uchar* pszHOSTNAME); rsRetVal MsgSetAfterPRIOffs(msg_t *pMsg, short offs); -void MsgSetMSG(msg_t *pMsg, char* pszMSG); +void MsgSetMSGoffs(msg_t *pMsg, short offs); void MsgSetRawMsgWOSize(msg_t *pMsg, char* pszRawMsg); void MsgSetRawMsg(msg_t *pMsg, char* pszRawMsg, size_t lenMsg); void moveHOSTNAMEtoTAG(msg_t *pM); |