mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-02-07 23:59:36 +08:00
fix endian problem
This commit is contained in:
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user