]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: more info in LSA checksum warning (BZ#685)
authorJaroslav Fojtik <jafojtik@seznam.cz>
Sun, 11 Dec 2011 14:22:16 +0000 (18:22 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 21 Dec 2011 12:23:50 +0000 (16:23 +0400)
ospfd/ospf_packet.c

index c347f31d83c0336bb7bb10b45052c18f8bc2f24b..1c1a1e69521c2847b9e26aa73766a448f2712d0f 100644 (file)
@@ -1520,8 +1520,13 @@ ospf_ls_upd_list_lsa (struct ospf_neighbor *nbr, struct stream *s,
       sum = lsah->checksum;
       if (sum != ospf_lsa_checksum (lsah))
        {
-         zlog_warn ("Link State Update: LSA checksum error %x, %x.",
-                    sum, lsah->checksum);
+         /* (bug #685) more details in a one-line message make it possible
+          * to identify problem source on the one hand and to have a better
+          * chance to compress repeated messages in syslog on the other */
+         zlog_warn ("Link State Update: LSA checksum error %x/%x, ID=%s from: nbr %s, router ID %s, adv router %s",
+                    sum, lsah->checksum, inet_ntoa (lsah->id),
+                    inet_ntoa (nbr->src), inet_ntoa (nbr->router_id),
+                    inet_ntoa (lsah->adv_router));
          continue;
        }