summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 19:58:16 +0200
committerOndrej Filip <feela@network.cz>2000-04-18 19:58:16 +0200
commitdd100e40c60811324b450ef7c078f0e992b2ded6 (patch)
tree5e48cf4284b2b91e593f65a69f41dfdad3f19d2b /proto/ospf/neighbor.c
parent8914e37dc028c89488d07556a511d8b49d38856f (diff)
downloadbird-dd100e40c60811324b450ef7c078f0e992b2ded6.tar
bird-dd100e40c60811324b450ef7c078f0e992b2ded6.zip
Better dumping in neighbor chstate.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index f52ff67..bb9d21d 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -8,6 +8,9 @@
#include "ospf.h"
+char *ospf_ns[]={"down", "attempt", "init", "2way", "exstart", "exchange",
+ "loading", "full"};
+
void
neigh_chstate(struct ospf_neighbor *n, u8 state)
{
@@ -19,8 +22,8 @@ neigh_chstate(struct ospf_neighbor *n, u8 state)
ifa=n->ifa;
p=(struct proto *)(ifa->proto);
- debug("%s: Neigbor '%u' changes state from %u to %u.\n", p->name, n->rid,
- n->state, state);
+ debug("%s: Neigbor '%u' changes state from \"%u\" to \"%u\".\n",
+ p->name, n->rid, ospf_ns[n->state], ospf_ns[state]);
n->state=state;
}
}