summaryrefslogtreecommitdiff
path: root/proto/ospf/iface.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 19:22:49 +0000
committerOndrej Filip <feela@network.cz>2000-04-18 19:22:49 +0000
commit79f036ef6e9b2204528a41079c59a3a9ae9d50f5 (patch)
treeb6a43387a5c52dfc248f0319fc96fb1506ac862f /proto/ospf/iface.c
parent4472402551a1cc8d760a4e980fdcd7a417e0796a (diff)
Dump changes.
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 b0bb62ac..d76aaae7 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)
{