The byte order functions are the same as the Unix functions.
u_short ntohs(u_short n) u_long ntohl(u_long n) u_short htons(u_short n) u_long htonl(u_long n)
u_long ntohl(u_long n)
u_short htons(u_short n)
u_long htonl(u_long n)