summaryrefslogtreecommitdiffstats
path: root/runtime/msg.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-04 12:59:53 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-04 12:59:53 +0100
commita6aa2b75ee9da97a6d2d98701af8bff01064afe4 (patch)
tree30b4d5fe360aee350a7b05ad36e640485f4cbf37 /runtime/msg.c
parente17c0267dbda37641fd93e51ce28c9ab2307c0c3 (diff)
downloadrsyslog-a6aa2b75ee9da97a6d2d98701af8bff01064afe4.tar.gz
rsyslog-a6aa2b75ee9da97a6d2d98701af8bff01064afe4.tar.bz2
rsyslog-a6aa2b75ee9da97a6d2d98701af8bff01064afe4.zip
mmanon: complete ipv4 functionality
Diffstat (limited to 'runtime/msg.c')
-rw-r--r--runtime/msg.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/msg.c b/runtime/msg.c
index 68577ad0..c302a050 100644
--- a/runtime/msg.c
+++ b/runtime/msg.c
@@ -1468,6 +1468,14 @@ getRawMsg(msg_t *pM, uchar **pBuf, int *piLen)
}
+/* note: setMSGLen() is only for friends who really know what they
+ * do. Setting an invalid length can be desasterous!
+ */
+void setMSGLen(msg_t *pM, int lenMsg)
+{
+ pM->iLenMSG = lenMsg;
+}
+
int getMSGLen(msg_t *pM)
{
return((pM == NULL) ? 0 : pM->iLenMSG);