cli_msg(-1015, "\tBackup designated router (IP): %I", ifa->bdrip);
}
+ uint lsrt_count = 0;
+ struct ospf_neighbor *n;
+ WALK_LIST(n, ifa->neigh_list)
+ lsrt_count += n->lsrt_count;
+ cli_msg(-1015, "\tTotal LSA retransmission list length: %u", lsrt_count);
+
cli_msg(-1015, "\tStatistics:");
ospf_iface_stats(-1015, &ifa->stats);
+
}
if (!SNODE_VALID(ret))
{
- en->ret_count++;
s_add_tail(&n->lsrtl, SNODE ret);
+ n->lsrt_count++;
+ en->ret_count++;
}
ret->lsa = en->lsa;
s_rem_node(SNODE ret);
ospf_hash_delete(n->lsrth, ret);
+ n->lsrt_count--;
if (EMPTY_SLIST(n->lsrtl))
tm_stop(n->lsrt_timer);
s_rem_node(SNODE ret);
ospf_hash_delete(n->lsrth, ret);
+ n->lsrt_count--;
continue;
}
s_init_list(&(n->lsrtl));
n->lsrth = ospf_top_new(p, n->pool);
+ n->lsrt_count = 0;
}
static void
*/
slist lsrtl; /* slist of struct top_hash_entry from n->lsrth */
struct top_graph *lsrth;
+ u32 lsrt_count; /* Number of entries in Link state retransmission list */
timer *dbdes_timer; /* DBDES exchange timer */
timer *lsrq_timer; /* LSA request timer */
timer *lsrt_timer; /* LSA retransmission timer */