net_if
free_local_netifs(int if_cnt, struct net_if **if_list)
get_local_netifs(int *if_cnt, struct net_if ***if_list)
struct net_if **local_ifs = NULL;
struct net_if **p;
if ((p = (struct net_if **)realloc(local_ifs,
sizeof (struct net_if *) * (cnt + 1))) == NULL) {
if ((local_ifs[cnt] = malloc(sizeof (struct net_if))) == NULL) {
struct net_if **local_ifs = NULL;