summaryrefslogtreecommitdiffstats
path: root/ospfd/ospfd.h
diff options
context:
space:
mode:
authorDinesh G Dutt <ddutt@cumulusnetworks.com>2014-09-30 12:53:28 -0700
committerPaul Jakma <paul@quagga.net>2014-11-11 17:25:09 +0000
commit50f38b3500a6af6e1b0d1389d65c62d70c41e8c2 (patch)
tree0525b14ce3c53f891cd7f5a00fcf954f4893a99f /ospfd/ospfd.h
parent88d37b902bc8127379d3293b9671aa6a11479c23 (diff)
downloadquagga-50f38b3500a6af6e1b0d1389d65c62d70c41e8c2.tar.bz2
quagga-50f38b3500a6af6e1b0d1389d65c62d70c41e8c2.tar.xz
Compute and display SPF execution statistics
Detailed SPF statistics, all around time spent executing various pieces of SPF such as the SPF algorithm itself, installing routes, pruning unreachable networks etc. Reason codes for firing up SPF are: R - Router LSA, N - Network LSA, S - Summary LSA, ABR - ABR status change, ASBR - ASBR Status Change, AS - ASBR Summary, M - MaxAge Signed-off-by: Dinesh G Dutt <ddutt@cumulusnetworks.com> Reviewed-by: JR Rivers <jrrivers@cumulusnetworks.com> Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com> Reviewed-by: Ayan Banerjee <ayan@cumulusnetworks.com> Reviewed-by: Paul Jakma <paul@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospfd.h')
-rw-r--r--ospfd/ospfd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h
index 4242aa01..bf70d022 100644
--- a/ospfd/ospfd.h
+++ b/ospfd/ospfd.h
@@ -194,8 +194,9 @@ struct ospf
struct route_table *external_lsas; /* Database of external LSAs,
prefix is LSA's adv. network*/
- /* Time stamps. */
+ /* Time stamps */
struct timeval ts_spf; /* SPF calculation time stamp. */
+ struct timeval ts_spf_duration; /* Execution time of last SPF */
struct route_table *maxage_lsa; /* List of MaxAge LSA for deletion. */
int redistribute; /* Num of redistributed protocols. */
@@ -393,6 +394,9 @@ struct ospf_area
/* Statistics field. */
u_int32_t spf_calculation; /* SPF Calculation Count. */
+ /* Time stamps. */
+ struct timeval ts_spf; /* SPF calculation time stamp. */
+
/* Router count. */
u_int32_t abr_count; /* ABR router in this area. */
u_int32_t asbr_count; /* ASBR router in this area. */