summaryrefslogtreecommitdiffstats
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r--proto/ospf/iface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index b0bb62a..d76aaae 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -11,6 +11,9 @@
char *ospf_is[]={ "down", "loop", "waiting", "point-to-point", "drother",
"backup", "dr" };
+char *ospf_ism[]={ "interface up", "wait timer fired", "backup seen",
+ "neighbor change", "loop indicated", "unloop indicated", "interface down"};
+
void
iface_chstate(struct ospf_iface *ifa, u8 state)
{
@@ -69,8 +72,8 @@ ospf_int_sm(struct ospf_iface *ifa, int event)
p=(struct proto *)(ifa->proto);
- DBG("%s: SM on iface %s. Event is %d.\n",
- p->name, ifa->iface->name, event);
+ DBG("%s: SM on iface %s. Event is \"%s\".\n",
+ p->name, ifa->iface->name, ospf_ism[event]);
switch(event)
{