byte-swap homer ID as required

fixes #902

Change-Id: I332120c269ef63a273ca1a87f4e98cac8afb5e25
(cherry picked from commit d1e3dc0996)
mr4.5
Richard Fuchs 7 years ago
parent 8e1640e6fd
commit eaee0ad5bc

@ -419,7 +419,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