]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/if_netlink.c
*: introduce new rb-tree to optimize interface lookup by ifindex
[mirror_frr.git] / zebra / if_netlink.c
index 0b97903ce0e5f0e78a244e11e340e726068cd673..a2235904c60668cfc9f7220417e36b0e6fc6e1aa 100644 (file)
@@ -93,7 +93,7 @@ static void set_ifindex(struct interface *ifp, ifindex_t ifi_index,
                        if_delete_update(oifp);
                }
        }
-       ifp->ifindex = ifi_index;
+       if_set_index(ifp, ifi_index);
 }
 
 /* Utility function to parse hardware link-layer address and update ifp */