Use uint16_t for port.