diff options
author | 2010-09-25 13:29:56 +0000 | |
---|---|---|
committer | 2010-09-25 13:29:56 +0000 | |
commit | 0439e4c8833147e2fb2efdf248adcd25440d16fb (patch) | |
tree | de452c1f59641fd08354d045610e3f98e57676bb | |
parent | When counting the lsa also build the sum of the ls_checksums. This can be (diff) | |
download | wireguard-openbsd-0439e4c8833147e2fb2efdf248adcd25440d16fb.tar.xz wireguard-openbsd-0439e4c8833147e2fb2efdf248adcd25440d16fb.zip |
Print the checksum sum as a simple fingerprint of the LSDB.
OK dlg@
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c index efb6b1b96af..0fad78bd8ed 100644 --- a/usr.sbin/ospfctl/ospfctl.c +++ b/usr.sbin/ospfctl/ospfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfctl.c,v 1.54 2010/06/12 09:44:44 bluhm Exp $ */ +/* $OpenBSD: ospfctl.c,v 1.55 2010/09/25 13:29:56 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -335,7 +335,8 @@ show_summary_msg(struct imsg *imsg) printf("SPF delay is %d msec(s), hold time between two SPFs " "is %d msec(s)\n", sum->spf_delay, sum->spf_hold_time); - printf("Number of external LSA(s) %d\n", sum->num_ext_lsa); + printf("Number of external LSA(s) %d (Checksum sum 0x%x)\n", + sum->num_ext_lsa, sum->ext_lsa_cksum); printf("Number of areas attached to this router: %d\n", sum->num_area); break; @@ -348,7 +349,8 @@ show_summary_msg(struct imsg *imsg) "area: %d\n", sumarea->num_adj_nbr); printf(" SPF algorithm executed %d time(s)\n", sumarea->num_spf_calc); - printf(" Number LSA(s) %d\n", sumarea->num_lsa); + printf(" Number LSA(s) %d (Checksum sum 0x%x)\n", + sumarea->num_lsa, sumarea->lsa_cksum); break; case IMSG_CTL_END: printf("\n"); |