bgp_update_interface_nbrs(bgp, ifp, NULL);
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
return 0;
}
int i;
RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) {
- if (ifp->ifindex == IFINDEX_DELETED)
- continue;
-
/* IF name */
vty_frame(vty, "interface %s\n", ifp->name);
write++;
in case there is configuration info attached to it. */
if_delete_retain(ifp);
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
return 0;
}
/* To support pseudo interface do not free interface structure. */
/* if_delete(ifp); */
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
ifp2kif(ifp, &kif);
main_imsg_compose_both(IMSG_IFSTATUS, &kif, sizeof(kif));
deleted interfaces). */
ifindex_t ifindex;
#define IFINDEX_INTERNAL 0
-#define IFINDEX_DELETED INT_MAX
/* Zebra internal interface status */
u_char status;
ospf6_interface_if_del (ifp);
#endif /*0*/
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
return 0;
}
if (memcmp(ifp->name, "VLINK", 5) == 0)
continue;
- if (ifp->ifindex == IFINDEX_DELETED)
- continue;
-
vrf = vrf_lookup_by_id(ifp->vrf_id);
vty_frame(vty, "!\n");
if (rn->info)
ospf_if_free((struct ospf_interface *)rn->info);
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
return 0;
}
/* To support pseudo interface do not free interface structure. */
/* if_delete(ifp); */
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
return 0;
}
RB_FOREACH (ifp, if_name_head, &vrf->ifaces_by_name) {
struct rip_interface *ri;
- if (ifp->ifindex == IFINDEX_DELETED)
- continue;
-
ri = ifp->info;
/* Do not display the interface if there is no
/* To support pseudo interface do not free interface structure. */
/* if_delete(ifp); */
- ifp->ifindex = IFINDEX_DELETED;
+ ifp->ifindex = IFINDEX_INTERNAL;
return 0;
}