router_id_get(&before, zvrf_id(zvrf));
- if (!strncmp(ifc->ifp->name, "lo", 2)
- || !strncmp(ifc->ifp->name, "dummy", 5))
+ if (if_is_loopback(ifc->ifp))
l = zvrf->rid_lo_sorted_list;
else
l = zvrf->rid_all_sorted_list;
router_id_get(&before, zvrf_id(zvrf));
- if (!strncmp(ifc->ifp->name, "lo", 2)
- || !strncmp(ifc->ifp->name, "dummy", 5))
+ if (if_is_loopback(ifc->ifp))
l = zvrf->rid_lo_sorted_list;
else
l = zvrf->rid_all_sorted_list;