Commit 287f2497 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

msg: fix intiialization of reserved fields

parent bbe01d0b
...@@ -110,6 +110,8 @@ int msg_from_sample(struct msg *msg_in, struct sample *smp, struct vlist *signal ...@@ -110,6 +110,8 @@ int msg_from_sample(struct msg *msg_in, struct sample *smp, struct vlist *signal
{ {
msg_in->type = MSG_TYPE_DATA; msg_in->type = MSG_TYPE_DATA;
msg_in->version = MSG_VERSION; msg_in->version = MSG_VERSION;
msg_in->rsvd1 = 0;
msg_in->resv2 = 0;
msg_in->length = (uint16_t) smp->length; msg_in->length = (uint16_t) smp->length;
msg_in->sequence = (uint32_t) smp->sequence; msg_in->sequence = (uint32_t) smp->sequence;
msg_in->ts.sec = smp->ts.origin.tv_sec; msg_in->ts.sec = smp->ts.origin.tv_sec;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment