variable ip_len breaks build on aix so switched it to len_ip
Merge pull request #1420 from McAtte/fix-aix-build-bad-var-name

variable ip_len breaks build on aix so switched it to len_ip