Fix ntoh bug in nettypes