]> git.proxmox.com Git - mirror_frr.git/blobdiff - eigrpd/eigrp_filter.c
zebra: Allow ns delete to happen after under/over flow checks
[mirror_frr.git] / eigrpd / eigrp_filter.c
index b74127aa42c55272dbb139c892cacf499017a19f..c1bf1647d81fc08125f69a7e771d809b7a5262a4 100644 (file)
@@ -74,6 +74,7 @@ void eigrp_distribute_update(struct distribute *dist)
        /* if no interface address is present, set list to eigrp process struct
         */
        e = eigrp_lookup();
+       assert(e != NULL);
 
        /* Check if distribute-list was set for process or interface */
        if (!dist->ifname) {
@@ -295,10 +296,10 @@ void eigrp_distribute_update_interface(struct interface *ifp)
  */
 void eigrp_distribute_update_all(struct prefix_list *notused)
 {
+       struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
        struct interface *ifp;
-       struct listnode *node, *nnode;
 
-       for (ALL_LIST_ELEMENTS(vrf_iflist(VRF_DEFAULT), node, nnode, ifp))
+       FOR_ALL_INTERFACES (vrf, ifp)
                eigrp_distribute_update_interface(ifp);
 }