From d7e6e157de0bf9714210516b94c7764054ae0828 Mon Sep 17 00:00:00 2001 From: Kaian Date: Wed, 3 Feb 2016 11:23:24 +0100 Subject: [PATCH] EEP: Fix compilation warnings in FreeBSD. Fixes #91 --- src/capture_eep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/capture_eep.c b/src/capture_eep.c index 6178d8c..e8987e3 100644 --- a/src/capture_eep.c +++ b/src/capture_eep.c @@ -342,13 +342,13 @@ capture_eep_send_v3(capture_packet_t *pkt) src_ip6.chunk.vendor_id = htons(0x0000); src_ip6.chunk.type_id = htons(0x0005); inet_pton(AF_INET6, pkt->ip_src, &src_ip6.data); - src_ip6.chunk.length = htonl(sizeof(src_ip6)); + src_ip6.chunk.length = htons(sizeof(src_ip6)); /* DST IPv6 */ dst_ip6.chunk.vendor_id = htons(0x0000); dst_ip6.chunk.type_id = htons(0x0006); inet_pton(AF_INET6, pkt->ip_dst, &dst_ip6.data); - dst_ip6.chunk.length = htonl(sizeof(dst_ip6)); + dst_ip6.chunk.length = htons(sizeof(dst_ip6)); iplen = sizeof(dst_ip6) + sizeof(src_ip6); }