mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Better dumping in neighbor chstate.
This commit is contained in:
parent
8914e37dc0
commit
dd100e40c6
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
#include "ospf.h"
|
#include "ospf.h"
|
||||||
|
|
||||||
|
char *ospf_ns[]={"down", "attempt", "init", "2way", "exstart", "exchange",
|
||||||
|
"loading", "full"};
|
||||||
|
|
||||||
void
|
void
|
||||||
neigh_chstate(struct ospf_neighbor *n, u8 state)
|
neigh_chstate(struct ospf_neighbor *n, u8 state)
|
||||||
{
|
{
|
||||||
@ -19,8 +22,8 @@ neigh_chstate(struct ospf_neighbor *n, u8 state)
|
|||||||
ifa=n->ifa;
|
ifa=n->ifa;
|
||||||
p=(struct proto *)(ifa->proto);
|
p=(struct proto *)(ifa->proto);
|
||||||
|
|
||||||
debug("%s: Neigbor '%u' changes state from %u to %u.\n", p->name, n->rid,
|
debug("%s: Neigbor '%u' changes state from \"%u\" to \"%u\".\n",
|
||||||
n->state, state);
|
p->name, n->rid, ospf_ns[n->state], ospf_ns[state]);
|
||||||
n->state=state;
|
n->state=state;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user