4.2.26 ntohs

uint16_t ntohs(uint16_t netshort)

The ntohs function converts netshort from network-byte order to host-byte order.