WALK_LIST(i, p->scan.temp_ifs)
if (!strcmp(i->name, name))
return i;
- i = mb_alloc(p->p.pool, sizeof(struct iface));
- bzero(i, sizeof(*i));
+ i = mb_allocz(p->p.pool, sizeof(struct iface));
strcpy(i->name, name);
add_tail(&p->scan.temp_ifs, &i->n);
return i;
WALK_LIST(i, p->scan.temp_ifs)
if (i->index == index)
return i;
- i = mb_alloc(p->p.pool, sizeof(struct iface));
- bzero(i, sizeof(*i));
+ i = mb_allocz(p->p.pool, sizeof(struct iface));
if (j = if_find_by_index(index))
strcpy(i->name, j->name);
else