replace hard-coded 32 with ZZ_PORTS_MAX