mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Better dumping.
This commit is contained in:
parent
032df28048
commit
b332fcdfc8
@ -825,11 +825,23 @@ static void
|
|||||||
ospf_dump(struct proto *p)
|
ospf_dump(struct proto *p)
|
||||||
{
|
{
|
||||||
char areastr[20];
|
char areastr[20];
|
||||||
|
struct ospf_iface *ifa;
|
||||||
|
struct ospf_neighbor *n;
|
||||||
struct ospf_config *c = (void *) p->cf;
|
struct ospf_config *c = (void *) p->cf;
|
||||||
|
|
||||||
DBG(p->name);
|
debug("%s: AreaID: %u\n", p->name, c->area );
|
||||||
DBG(": Dump.\n");
|
|
||||||
debug(" -AreaID: %u\n", c->area );
|
WALK_LIST(ifa, ((struct proto_ospf *)p)->iface_list)
|
||||||
|
{
|
||||||
|
debug("%s: Interface: %s\n", p->name, ifa->iface->name);
|
||||||
|
debug("%s: state: %u\n", p->name, ifa->state);
|
||||||
|
debug("%s: DR: %u\n", p->name, ifa->drid);
|
||||||
|
debug("%s: BDR: %u\n", p->name, ifa->bdrid);
|
||||||
|
WALK_LIST(n, ifa->neigh_list)
|
||||||
|
{
|
||||||
|
debug("%s: neighbor %u in state %u\n", p->name, n->rid, n->state);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct proto *
|
static struct proto *
|
||||||
|
Loading…
Reference in New Issue
Block a user