Browse Source

2004-06-06 Paul Jakma <paul@dishone.st>

        * ospf_dump.c,ospf_lsa.c: Fix typos of merge of previous.
          ospf_flood.c: (ospf_process_self_originated_lsa) fix zlog format.
paul 17 years ago
parent
commit
553ff11329
4 changed files with 8 additions and 3 deletions
  1. 5 0
      ospfd/ChangeLog
  2. 1 1
      ospfd/ospf_dump.c
  3. 1 1
      ospfd/ospf_flood.c
  4. 1 1
      ospfd/ospf_lsa.c

+ 5 - 0
ospfd/ChangeLog

@@ -1,3 +1,8 @@
+2004-06-06 Paul Jakma <paul@dishone.st>
+
+	* ospf_dump.c,ospf_lsa.c: Fix typos of merge of previous.
+	  ospf_flood.c: (ospf_process_self_originated_lsa) fix zlog format
+
 2004-05-31 Sagun Shakya <sagun.shakya@sun.com>
 
 	* ospf_dump.c: (ospf_lsa_header_dump) LOOKUP can return null if

+ 1 - 1
ospfd/ospf_dump.c

@@ -332,7 +332,7 @@ ospf_lsa_header_dump (struct lsa_header *lsah)
   zlog_info ("    Options %d (%s)", lsah->options,
 	     ospf_options_dump (lsah->options));
   zlog_info ("    LS type %d (%s)", lsah->type,
-             (lsah->type ? lsah->type : "unknown type"));
+             (lsah->type ? lsah_type : "unknown type"));
   zlog_info ("    Link State ID %s", inet_ntoa (lsah->id));
   zlog_info ("    Advertising Router %s", inet_ntoa (lsah->adv_router));
   zlog_info ("    LS sequence number 0x%lx", (u_long)ntohl (lsah->ls_seqnum));

+ 1 - 1
ospfd/ospf_flood.c

@@ -119,7 +119,7 @@ ospf_process_self_originated_lsa (struct ospf *ospf,
   listnode node;
   
   if (IS_DEBUG_OSPF_EVENT)
-    zlog_info ("LSA[Type%d:%s]: Process self-originated LSA seq 0x%lx",
+    zlog_info ("LSA[Type%d:%s]: Process self-originated LSA seq 0x%x",
 	       new->data->type, inet_ntoa (new->data->id), 
 	       ntohl(new->data->ls_seqnum));
 

+ 1 - 1
ospfd/ospf_lsa.c

@@ -2652,7 +2652,7 @@ ospf_lsa_install (struct ospf *ospf, struct ospf_interface *oi,
       can be originated. "
    */
 
-  if (ntohl(lsa->data->ls_seqnum) - 1 ==  htonl(OSPF_MAX_SEQUENCE_NUMBER)
+  if (ntohl(lsa->data->ls_seqnum) - 1 ==  htonl(OSPF_MAX_SEQUENCE_NUMBER))
     {
       if (ospf_lsa_is_self_originated(ospf, lsa))
         {