diff options
Diffstat (limited to 'ripd/ripd.c')
| -rw-r--r-- | ripd/ripd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index b5cbc96bc3..9a13250428 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -2319,13 +2319,15 @@ void rip_output_process(struct connected *ifc, struct sockaddr_in *to, tmp_rinfo)) if (tmp_rinfo->type == ZEBRA_ROUTE_RIP && tmp_rinfo->nh.ifindex - == ifc->ifp->ifindex) - rinfo->metric_out = + == ifc->ifp->ifindex) + tmp_rinfo->metric_out = RIP_METRIC_INFINITY; - if (tmp_rinfo->type == ZEBRA_ROUTE_CONNECT + + if (rinfo->type == ZEBRA_ROUTE_CONNECT && prefix_match((struct prefix *)p, ifc->address)) - rinfo->metric_out = RIP_METRIC_INFINITY; + rinfo->metric_out = + RIP_METRIC_INFINITY; } /* Prepare preamble, auth headers, if needs be */ |
