Replace all in_port_t with uint16_t to avoid compilation issues on different systems.