From eba3e2e8cd32a319f0ac828cd0860cb700bdafe1 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 Jun 2018 03:23:23 +0000 Subject: [PATCH] fix endian problem --- common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.cpp b/common.cpp index c390cbf..272d342 100644 --- a/common.cpp +++ b/common.cpp @@ -93,7 +93,7 @@ inline int is_big_endian() } u64_t ntoh64(u64_t a) { - #ifdef UDP2RAW_BIG_ENDIAN + #ifdef UDP2RAW_LITTLE_ENDIAN u32_t h=get_u64_h(a); u32_t l=get_u64_l(a); return pack_u64(ntohl(l),ntohl(h));