byte-swap homer ID as required

fixes #902

Change-Id: I332120c269ef63a273ca1a87f4e98cac8afb5e25
(cherry picked from commit d1e3dc0996)
changes/04/36804/1
Richard Fuchs 6 years ago
parent 9b6e3821de
commit 85d1024ff4

@ -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 */

Loading…
Cancel
Save