+ /*
+ * The following code (bug fix) inherited from FreeBSD is
+ * currently disabled, because our implementation uses the
+ * RTF_PRCLONING scheme that has been abandoned in current
+ * FreeBSD release. The scheme involves setting such a flag
+ * for the default route entry, and therefore all off-link
+ * destinations would become clones of that entry. Enabling
+ * the following code would be problematic at this point,
+ * because the removal of default route would cause only
+ * the left-half of the tree to be traversed, leaving the
+ * right-half untouched. If there are clones of the entry
+ * that reside in that right-half, they would not be deleted
+ * and would linger around until they expire or explicitly
+ * deleted, which is a very bad thing.
+ *
+ * This code should be uncommented only after we get rid
+ * of the RTF_PRCLONING scheme.
+ */
+#if 0
+ /*
+ * At the top of the tree, no need to traverse the right
+ * half, prevent the traversal of the entire tree in the
+ * case of default route.
+ */
+ if (rn->rn_parent->rn_flags & RNF_ROOT)
+ stopping = 1;
+#endif
+
+ /* Find the next *leaf* to start from */