diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-10-29 14:37:11 -0200 | 
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-28 16:18:35 -0200 | 
| commit | 1a1a70655c869a1b66e363894e5aba19f4aa08f3 (patch) | |
| tree | 8eea443fc57ac5766128d41e27c9411a3c1c7afc /zebra/irdp_main.c | |
| parent | c7fdd84f36a262d062a10c1439121df361ab78d3 (diff) | |
lib: convert vrf code to use red-black trees as well
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/irdp_main.c')
| -rw-r--r-- | zebra/irdp_main.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c index cc3a4abaf3..7fa4ad4cbe 100644 --- a/zebra/irdp_main.c +++ b/zebra/irdp_main.c @@ -304,17 +304,16 @@ void process_solicit (struct interface *ifp)  void irdp_finish()  { - +  struct vrf *vrf;    struct listnode *node, *nnode;    struct interface *ifp;    struct zebra_if *zi;    struct irdp_interface *irdp; -  vrf_iter_t iter;    zlog_info("IRDP: Received shutdown notification."); -  for (iter = vrf_first (); iter != VRF_ITER_INVALID; iter = vrf_next (iter))  -    for (ALL_LIST_ELEMENTS (vrf_iter2iflist (iter), node, nnode, ifp)) +  RB_FOREACH (vrf, vrf_id_head, &vrfs_by_id) +    for (ALL_LIST_ELEMENTS (vrf->iflist, node, nnode, ifp))        {          zi = ifp->info;  | 
