summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 19:54:06 +0200
committerOndrej Filip <feela@network.cz>2000-04-18 19:54:06 +0200
commit8914e37dc028c89488d07556a511d8b49d38856f (patch)
tree89993e03bc0101a149e2eea815710e5b55b78f7f /proto/ospf
parent284c43ff66e8b5879945d2c4e1a285354bd38ddf (diff)
downloadbird-8914e37dc028c89488d07556a511d8b49d38856f.tar
bird-8914e37dc028c89488d07556a511d8b49d38856f.zip
Better chstate dumping.
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 8ba198f..603525c 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -8,14 +8,18 @@
#include "ospf.h"
+char *ospf_is[]={ "down", "loop", "waiting", "point-to-point", "drother",
+ "backup", "dr" };
+
+
void
iface_chstate(struct ospf_iface *ifa, u8 state)
{
struct proto *p;
p=(struct proto *)(ifa->proto);
- debug("%s: Changing state of iface: %s from %u into %u.\n",
- p->name, ifa->iface->name, ifa->state, state);
+ debug("%s: Changing state of iface: %s from \"%s\" into \"%s\".\n",
+ p->name, ifa->iface->name, ospf_is[ifa->state], ospf_is[state]);
ifa->state=state;
if(ifa->iface->flags & IF_MULTICAST)
{