summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2007-03-26 10:11:11 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2007-03-26 10:11:11 +0000
commitefde3a4dd748c800b3acf02fef3059e621e72ff6 (patch)
treed92bc6687c478f1416fc17446d1b2a183a08f0f7 /usr.sbin/dvmrpd
parentae90534b842469c454a256c893c9772f8f49d05d (diff)
Route report packets with metric greater than infinity are legal, so don't
drop them. Small typo. OK norby@
Diffstat (limited to 'usr.sbin/dvmrpd')
-rw-r--r--usr.sbin/dvmrpd/rde_srt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/dvmrpd/rde_srt.c b/usr.sbin/dvmrpd/rde_srt.c
index 2575252a77a..8a830ebd32a 100644
--- a/usr.sbin/dvmrpd/rde_srt.c
+++ b/usr.sbin/dvmrpd/rde_srt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_srt.c,v 1.4 2007/03/21 19:33:48 michele Exp $ */
+/* $OpenBSD: rde_srt.c,v 1.5 2007/03/26 10:11:10 michele Exp $ */
/*
* Copyright (c) 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -301,9 +301,6 @@ srt_check_route(struct route_report *rr, int connected)
adj_metric = rr->metric + iface->metric;
- if (rr->metric >= INFINITY_METRIC)
- return (0);
-
if (adj_metric > INFINITY_METRIC)
adj_metric = INFINITY_METRIC;
@@ -369,7 +366,7 @@ infinity:
srt_delete_ds(src, rn, ds_nbr, iface);
} else if (INFINITY_METRIC < rr->metric &&
rr->metric < 2 * INFINITY_METRIC) {
- /* Neighbor is reporting his depenency for that source */
+ /* Neighbor is reporting his dependency for this source */
if (nbr_report == src->adv_rtr[ifindex].addr.s_addr)
srt_set_forwarder_self(src, iface, rn);