summaryrefslogtreecommitdiffstats
path: root/proto/ospf/neighbor.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-04-18 21:22:49 +0200
committerOndrej Filip <feela@network.cz>2000-04-18 21:22:49 +0200
commit79f036ef6e9b2204528a41079c59a3a9ae9d50f5 (patch)
treeb6a43387a5c52dfc248f0319fc96fb1506ac862f /proto/ospf/neighbor.c
parent4472402551a1cc8d760a4e980fdcd7a417e0796a (diff)
downloadbird-79f036ef6e9b2204528a41079c59a3a9ae9d50f5.tar
bird-79f036ef6e9b2204528a41079c59a3a9ae9d50f5.zip
Dump changes.
Diffstat (limited to 'proto/ospf/neighbor.c')
-rw-r--r--proto/ospf/neighbor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/proto/ospf/neighbor.c b/proto/ospf/neighbor.c
index 9576117..4565d4e 100644
--- a/proto/ospf/neighbor.c
+++ b/proto/ospf/neighbor.c
@@ -11,6 +11,11 @@
char *ospf_ns[]={"down", "attempt", "init", "2way", "exstart", "exchange",
"loading", "full"};
+const char *ospf_inm[]={ "hello received", "neighbor start", "2-way received",
+ "negotiation done", "exstart done", "bad ls request", "load done",
+ "adjacency ok?", "sequence mismatch", "1-way received", "kill neighbor",
+ "inactivity timer", "line down" };
+
void
neigh_chstate(struct ospf_neighbor *n, u8 state)
{
@@ -177,6 +182,9 @@ ospf_neigh_sm(struct ospf_neighbor *n, int event)
p=(struct proto *)(n->ifa->proto);
+ DBG("%s: Neighbor state machine for neighbor %I, event \"%s\".\n",
+ p->name, n->rid, ospf_inm[event]);
+
switch(event)
{
case INM_START: