From 0b64fb321331497849d77647fd4c3d90add990e9 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 26 Aug 2025 08:52:33 -0400 Subject: [PATCH] MT#55283 fix Homer timestamp byte order Regression from 8b50a41063 closes #1995 Change-Id: If68397af3863c30eb225f0f579cf45761c7a606e --- daemon/homer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/homer.c b/daemon/homer.c index 18c323f9c..41a3ef66a 100644 --- a/daemon/homer.c +++ b/daemon/homer.c @@ -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 */