i_cmp_addr_impl
res = i_cmp_addr_impl(ip1, ip2, internal, diff);
res = i_cmp_addr_impl(ip1, ip2, external, diff);