|
@@ -2429,12 +2429,14 @@ rip_output_process (struct connected *ifc, struct sockaddr_in *to,
|
|
|
struct rip_info *tmp_rinfo = NULL;
|
|
|
|
|
|
for (ALL_LIST_ELEMENTS_RO (list, listnode, tmp_rinfo))
|
|
|
- if (tmp_rinfo->type == ZEBRA_ROUTE_RIP &&
|
|
|
- tmp_rinfo->ifindex == ifc->ifp->ifindex)
|
|
|
- rinfo->metric_out = RIP_METRIC_INFINITY;
|
|
|
- if (tmp_rinfo->type == ZEBRA_ROUTE_CONNECT &&
|
|
|
- prefix_match((struct prefix *)p, ifc->address))
|
|
|
- rinfo->metric_out = RIP_METRIC_INFINITY;
|
|
|
+ {
|
|
|
+ if (tmp_rinfo->type == ZEBRA_ROUTE_RIP &&
|
|
|
+ tmp_rinfo->ifindex == ifc->ifp->ifindex)
|
|
|
+ rinfo->metric_out = RIP_METRIC_INFINITY;
|
|
|
+ if (tmp_rinfo->type == ZEBRA_ROUTE_CONNECT &&
|
|
|
+ prefix_match((struct prefix *)p, ifc->address))
|
|
|
+ rinfo->metric_out = RIP_METRIC_INFINITY;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* Prepare preamble, auth headers, if needs be */
|