Updated addr.c to latest IPv4 and IPv6 resolution functions