diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-05-31 21:43:08 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-05-31 21:43:08 +0200 |
commit | 9607536dbf7c50f9c2fc7a670eab51e5c313d10f (patch) | |
tree | 3bdb1494d3788c2e4d3a99ada22f572514ec9f60 /proto/rip/rip.c | |
parent | 72efa4b6f82222f91b63b9f61bbc88e458096ea7 (diff) | |
download | bird-9607536dbf7c50f9c2fc7a670eab51e5c313d10f.tar bird-9607536dbf7c50f9c2fc7a670eab51e5c313d10f.zip |
Kill duplicity between rif and rif_patt.
Diffstat (limited to 'proto/rip/rip.c')
-rw-r--r-- | proto/rip/rip.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |