]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Dump changes.
authorOndrej Filip <feela@network.cz>
Tue, 18 Apr 2000 19:22:49 +0000 (19:22 +0000)
committerOndrej Filip <feela@network.cz>
Tue, 18 Apr 2000 19:22:49 +0000 (19:22 +0000)
proto/ospf/iface.c
proto/ospf/neighbor.c
proto/ospf/ospf.c
proto/ospf/topology.c

index b0bb62acf294c9803cce074077a0e617e4da677c..d76aaae7485244a849ac539e2d389e518dbae2a6 100644 (file)
@@ -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)
   {
index 9576117385784c479241410e10e98cf01e69a956..4565d4e7f717c87c30fab1bf878308e7747e03b6 100644 (file)
 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:
index a806de691bf1d200ae20e98ed604d3068564596b..9c432b4d41af6a0182c5502ee6a28fef88b86588 100644 (file)
@@ -45,9 +45,9 @@ ospf_dump(struct proto *p)
 
   WALK_LIST(NODE oa,po->area_list)
   {
-    debug("\n%s: LSA graph dump for area \"%d\" start:\n", p->name,oa->areaid);
+    debug("\n%s: LSA graph dump for area \"%I\" start:\n", p->name,oa->areaid);
     ospf_top_dump(oa->gr);
-    debug("%s: LSA graph dump for area \"%d\" finished\n\n", p->name,
+    debug("%s: LSA graph dump for area \"%I\" finished\n\n", p->name,
       oa->areaid);
   }
 
index 4280e1106c42c5fbb77f4b4a71c3df3c4a26d1d1..2200aa21f9ff0a4756f2cb7e7406832fb02e4856 100644 (file)
@@ -34,7 +34,7 @@ originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p)
   struct top_hash_entry *old;
   struct proto_ospf *po=(struct proto_ospf *)p;
 
-  DBG("%s: Originating RT_lsa body for area \"%d\".\n", po->proto.name, oa->areaid);
+  DBG("%s: Originating RT_lsa body for area \"%I\".\n", po->proto.name, oa->areaid);
 
   WALK_LIST (ifa, p->iface_list) i++;
   {