macro maximum number of ips  is replaced by array length in sys call