From 9607536dbf7c50f9c2fc7a670eab51e5c313d10f Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 31 May 1999 19:43:08 +0000 Subject: Kill duplicity between rif and rif_patt. --- proto/rip/rip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/rip/rip.c') diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 144bc7c..430dbfd 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -218,7 +218,7 @@ advertise_entry( struct proto *p, struct rip_block *b, ip_addr whotoldme ) } n = net_get( p->table, b->network, ipa_mklen( b->netmask )); r = rte_get_temp(a); - r->u.rip.metric = ntohl(b->metric) + rif->metric; + r->u.rip.metric = ntohl(b->metric) + rif->patt->metric; if (r->u.rip.metric > P_CF->infinity) r->u.rip.metric = P_CF->infinity; r->u.rip.tag = ntohl(b->tag); r->net = n; -- cgit v1.2.3