Use htons() not hton()

Fixes build error in the commit 7fa67d0071
This commit is contained in:
Soner Tari 2022-12-23 22:23:40 +13:00
parent 37aa3d7ed5
commit 187f5c7893

View File

@ -419,11 +419,11 @@ logpkt_mirror_build(libnet_t *libnet,
libnet_ptag_t ptag;
ptag = libnet_build_tcp(src_addr->sa_family == AF_INET
? hton(CSIN(src_addr)->sin_port)
: hton(CSIN6(src_addr)->sin6_port),
? htons(CSIN(src_addr)->sin_port)
: htons(CSIN6(src_addr)->sin6_port),
dst_addr->sa_family == AF_INET
? hton(CSIN(dst_addr)->sin_port)
: hton(CSIN6(dst_addr)->sin6_port),
? htons(CSIN(dst_addr)->sin_port)
: htons(CSIN6(dst_addr)->sin6_port),
seq,
ack,
flags,