summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Fojtik <jafojtik@seznam.cz>2011-12-11 18:22:16 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-12-21 16:23:50 +0400
commit7b0d1c6d31d50fbf74f84cb60daaedd904b35171 (patch)
tree13a852a2b92f784a3e6f27ba7e26f888c8d0a620
parent6258c2ae35ec40c07e87c010423e6b93ac39bd66 (diff)
ospfd: more info in LSA checksum warning (BZ#685)
-rw-r--r--ospfd/ospf_packet.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index c347f31d..1c1a1e69 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -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;
}