diff options
author | Ondrej Filip <feela@network.cz> | 2000-04-18 19:58:16 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-04-18 19:58:16 +0200 |
commit | dd100e40c60811324b450ef7c078f0e992b2ded6 (patch) | |
tree | 5e48cf4284b2b91e593f65a69f41dfdad3f19d2b /proto/ospf | |
parent | 8914e37dc028c89488d07556a511d8b49d38856f (diff) | |
download | bird-dd100e40c60811324b450ef7c078f0e992b2ded6.tar bird-dd100e40c60811324b450ef7c078f0e992b2ded6.zip |
Better dumping in neighbor chstate.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/neighbor.c | 7 |
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; } } |