[ospfd] record timestamp and event of last NSM state change for neighbour
2006-07-10 Paul Jakma <paul.jakma@sun.com>
* ospf_nsm.c: (ospf_nsm_event) Record state change timestamp
and event in nbr struct.
* ospf_neighbor.h: (struct ospf_neighbor) Add fields to record
timestamp of last NSM change and event.
* ospf_vty.c: (show_ip_ospf_neighbor_detail_sub) Print
last state change timestamp and event, if available.
diff --git a/ospfd/ospf_neighbor.h b/ospfd/ospf_neighbor.h
index cbfbc2d..9b7ff36 100644
--- a/ospfd/ospf_neighbor.h
+++ b/ospfd/ospf_neighbor.h
@@ -82,6 +82,8 @@
/* Statistics Field */
u_int32_t state_change;
+ struct timeval ts_last_change;
+ const char *last_event_str;
struct ospf_nbr_nbma *nbr_nbma;
};