check_ipaddr
if (check_ipaddr(family, ifap, &wa) == 1)
af = check_ipaddr(t, &pref_addr);
static int check_ipaddr(char *addr, char **newaddr);