struct zserv *client;
char bufn[INET6_ADDRSTRLEN];
struct listnode *node;
- struct nexthop *nexthop, *tnexthop;
- int recursing;
+ struct nexthop *nexthop;
if (re && (rnh->state == NULL))
{
- for (ALL_NEXTHOPS_RO(re->nexthop, nexthop, tnexthop, recursing))
+ for (ALL_NEXTHOPS(re->nexthop, nexthop))
if (CHECK_FLAG (nexthop->flags, NEXTHOP_FLAG_FIB))
{
state_changed = 1;
copy_state (struct rnh *rnh, struct route_entry *re, struct route_node *rn)
{
struct route_entry *state;
- struct nexthop *nh;
if (rnh->state)
{
state->type = re->type;
state->metric = re->metric;
- for (nh = re->nexthop; nh; nh = nh->next)
- route_entry_copy_nexthops(state, nh);
+ route_entry_copy_nexthops(state, re->nexthop);
rnh->state = state;
}