2004-12-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_packet.c: (ospf_db_desc) Should be static, not global.
(ospf_hello,ospf_db_desc,ospf_ls_upd,ospf_ls_ack) Improve warning
messages to include identifying information (e.g. router id).
* ospf_nsm.c: (nsm_change_state) Improve info message to include
router id and state names.
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c
index e77546a..ce84624 100644
--- a/ospfd/ospf_nsm.c
+++ b/ospfd/ospf_nsm.c
@@ -689,7 +689,7 @@
/* One of the neighboring routers changes to/from the FULL state. */
if ((old_state != NSM_Full && state == NSM_Full) ||
(old_state == NSM_Full && state != NSM_Full))
- {
+ {
if (state == NSM_Full)
{
oi->full_nbrs++;
@@ -726,8 +726,11 @@
ospf_ls_retransmit_clear (nbr);
}
- zlog_info ("nsm_change_state(): "
- "scheduling new router-LSA origination");
+ zlog_info ("nsm_change_state(%s, %s -> %s): "
+ "scheduling new router-LSA origination",
+ inet_ntoa (nbr->router_id),
+ LOOKUP(ospf_nsm_state_msg, old_state),
+ LOOKUP(ospf_nsm_state_msg, state));
ospf_router_lsa_timer_add (oi->area);