/* Note ntohs() and ntohl() are merely references to the htonx counterparts. Convert an u16_t from host- to network byte order. */
u16_t lwip_htons(u16_t n)
/* Note ntohs() and ntohl() are merely references to the htonx counterparts. Convert an u16_t from host- to network byte order. */
u16_t lwip_htons(u16_t n)
{
  return ((n & 0xff) << 8) | ((n & 0xff00) >> 8);
}