diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-07-25 20:44:12 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-07-25 20:44:12 +0000 |
commit | 3fed4160cd23f1767d8980e8cba10bc3933947d5 (patch) | |
tree | 34a08d8c76296aaeea1200be35fe08411ca45c2c /ospfd/ospf_neighbor.h | |
parent | cc8b13a00bfe7083ae68755e547a39cd762f2963 (diff) | |
download | quagga-3fed4160cd23f1767d8980e8cba10bc3933947d5.tar.bz2 quagga-3fed4160cd23f1767d8980e8cba10bc3933947d5.tar.xz |
[ospfd] Additional NSM neighbour state change stats/information
2006-07-25 Paul Jakma <paul.jakma@sun.com>
* ospf_neigbor.h: (struct ospf_neighbor) Add some additional
neighbour state statistics fields, timestamps for progressive
and regressive state changes, and pointer to event string
for the latter state change.
* ospf_nsm.c: (nsm_notice_state_change) Update new state changs
history as required.
* ospf_vty.c: (show_ip_ospf_neighbor_detail_sub) Print out above
new per-neighbour state change stats.
Diffstat (limited to 'ospfd/ospf_neighbor.h')
-rw-r--r-- | ospfd/ospf_neighbor.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ospfd/ospf_neighbor.h b/ospfd/ospf_neighbor.h index 9b7ff36e..25f13524 100644 --- a/ospfd/ospf_neighbor.h +++ b/ospfd/ospf_neighbor.h @@ -80,11 +80,14 @@ struct ospf_neighbor struct thread *t_ls_upd; struct thread *t_hello_reply; - /* Statistics Field */ - u_int32_t state_change; - struct timeval ts_last_change; - const char *last_event_str; + /* NBMA configured neighbour */ struct ospf_nbr_nbma *nbr_nbma; + + /* Statistics */ + struct timeval ts_last_progress; /* last advance of NSM */ + struct timeval ts_last_regress; /* last regressive NSM change */ + const char *last_regress_str; /* Event which last regressed NSM */ + u_int32_t state_change; /* NSM state change counter */ }; /* Macros. */ |