From: Jaroslav Fojtik Date: Sun, 11 Dec 2011 14:22:16 +0000 (+0400) Subject: ospfd: more info in LSA checksum warning (BZ#685) X-Git-Tag: frr-2.0-rc1~1948 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=223da1a912305f2cac6f72c3b480ce103a25d7d6;p=mirror%2Ffrr.git ospfd: more info in LSA checksum warning (BZ#685) --- diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 0f338d3558..f8887c5f45 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -1568,8 +1568,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; }