[Xorp-hackers] Small bug in RIP code
Marko Zec
zec@icir.org
Tue, 24 Aug 2004 20:47:26 +0200
Hi all,
While running multiple xorps in imunes, I've just bumped into a small bug /
typo in the RIP code, which leads to incorrect route metric calculation. See
the patch bellow...
Cheers,
Marko
--- port.cc.org Tue Aug 24 20:40:31 2004
+++ port.cc Tue Aug 24 20:40:38 2004
@@ -918,7 +918,7 @@
nh = src_addr;
}
- metric += metric + cost();
+ metric += cost();
if (metric > RIP_INFINITY) {
metric = RIP_INFINITY;
}