SCCS-vsn: sbin/routed/input.c 5.11
SCCS-vsn: sbin/routed/tables.c 5.9
-static char sccsid[] = "@(#)input.c 5.10 (Berkeley) %G%";
+static char sccsid[] = "@(#)input.c 5.11 (Berkeley) %G%";
(RTS_INTERNAL|RTS_INTERFACE)) {
rt = rtfind(&n->rip_dst);
if (rt && equal(from, &rt->rt_router) &&
(RTS_INTERNAL|RTS_INTERFACE)) {
rt = rtfind(&n->rip_dst);
if (rt && equal(from, &rt->rt_router) &&
- rt->rt_metric == n->rip_metric)
+ rt->rt_metric <= n->rip_metric)
continue;
if (n->rip_metric < HOPCNT_INFINITY)
rtadd(&n->rip_dst, from, n->rip_metric, 0);
continue;
if (n->rip_metric < HOPCNT_INFINITY)
rtadd(&n->rip_dst, from, n->rip_metric, 0);
-static char sccsid[] = "@(#)tables.c 5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)tables.c 5.9 (Berkeley) %G%";
"changing route from interface %s (timed out)",
rt->rt_ifp->int_name);
}
"changing route from interface %s (timed out)",
rt->rt_ifp->int_name);
}
- if (doioctl || delete) {
rt->rt_router = *gate;
rt->rt_ifp = if_ifwithdstaddr(&rt->rt_router);
if (rt->rt_ifp == 0)
rt->rt_router = *gate;
rt->rt_ifp = if_ifwithdstaddr(&rt->rt_router);
if (rt->rt_ifp == 0)