From d1e3dc09961315bd3bb5143acb78f4d164911046 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 2 Jan 2020 11:58:06 -0500 Subject: [PATCH] byte-swap homer ID as required fixes #902 Change-Id: I332120c269ef63a273ca1a87f4e98cac8afb5e25 --- daemon/homer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/homer.c b/daemon/homer.c index ee067e00a..024a90191 100644 --- a/daemon/homer.c +++ b/daemon/homer.c @@ -427,7 +427,7 @@ static int send_hepv3 (GString *s, const str *id, int capt_id, const endpoint_t /* Capture ID */ hg->capt_id.chunk.vendor_id = htons(0x0000); hg->capt_id.chunk.type_id = htons(0x000c); - hg->capt_id.data = capt_id; + hg->capt_id.data = htonl(capt_id); hg->capt_id.chunk.length = htons(sizeof(hg->capt_id)); /* Payload */