]> git.proxmox.com Git - mirror_frr.git/blobdiff - ripd/rip_interface.c
*: introduce new rb-tree to optimize interface lookup by ifindex
[mirror_frr.git] / ripd / rip_interface.c
index 6fba0512e584fdb84a5658cc86d373f1daea69fa..21950c9f2bd01c37fb7ae2d444549af0e6ea50bf 100644 (file)
@@ -471,7 +471,7 @@ int rip_interface_delete(int command, struct zclient *zclient,
 
        /* To support pseudo interface do not free interface structure.  */
        /* if_delete(ifp); */
-       ifp->ifindex = IFINDEX_INTERNAL;
+       if_set_index(ifp, IFINDEX_INTERNAL);
 
        return 0;
 }