}
void show_ip_eigrp_nexthop_entry(struct vty *vty, struct eigrp *eigrp,
- struct eigrp_nexthop_entry *te, int *first)
+ struct eigrp_nexthop_entry *te, bool *first)
{
if (te->reported_distance == EIGRP_MAX_METRIC)
return;
if (*first) {
show_ip_eigrp_prefix_entry(vty, te->prefix);
- *first = 0;
+ *first = false;
}
if (te->adv_router == eigrp->neighbor_self)
int);
extern void show_ip_eigrp_prefix_entry(struct vty *,
struct eigrp_prefix_entry *);
-extern void show_ip_eigrp_nexthop_entry(struct vty *, struct eigrp *,
- struct eigrp_nexthop_entry *, int *);
+extern void show_ip_eigrp_nexthop_entry(struct vty *vty, struct eigrp *eigrp,
+ struct eigrp_nexthop_entry *ne,
+ bool *first);
extern void eigrp_debug_init(void);
struct eigrp_prefix_entry *tn;
struct eigrp_nexthop_entry *te;
struct route_node *rn;
- int first;
+ bool first;
eigrp = eigrp_lookup();
if (eigrp == NULL) {
continue;
tn = rn->info;
- first = 1;
+ first = true;
for (ALL_LIST_ELEMENTS_RO(tn->entries, node, te)) {
if (argc == 5
|| (((te->flags