Browse Source

MT#55283 fix Homer timestamp byte order

Regression from 8b50a41063

closes #1995

Change-Id: If68397af3863c30eb225f0f579cf45761c7a606e
pull/1998/head
Richard Fuchs 4 months ago
parent
commit
0b64fb3213
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      daemon/homer.c

+ 2
- 2
daemon/homer.c View File

@ -402,14 +402,14 @@ static int send_hepv3 (GString *s, const str *id, int capt_id, const endpoint_t
/* TIMESTAMP SEC */
hg->time_sec.chunk.vendor_id = htons(0x0000);
hg->time_sec.chunk.type_id = htons(0x0009);
hg->time_sec.data = tv / 1000000;
hg->time_sec.data = htonl(tv / 1000000);
hg->time_sec.chunk.length = htons(sizeof(hg->time_sec));
/* TIMESTAMP USEC */
hg->time_usec.chunk.vendor_id = htons(0x0000);
hg->time_usec.chunk.type_id = htons(0x000a);
hg->time_usec.data = tv % 1000000;
hg->time_usec.data = htonl(tv % 1000000);
hg->time_usec.chunk.length = htons(sizeof(hg->time_usec));
/* Protocol TYPE */


Loading…
Cancel
Save