variable ip_len breaks build on aix so switched it to len_ip

The use of len_ip on AIX causes a compile error. len_ip is being replaced by len_ff, presumably because of a system define. Renaming to ip_len resolves this.