1
0
mirror of https://github.com/wangyu-/udp2raw.git synced 2025-04-10 14:09:34 +08:00

fix endian problem

This commit is contained in:
root 2018-06-15 03:23:23 +00:00
parent 11b49c72d5
commit eba3e2e8cd

@ -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));