summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_nsm.c
diff options
context:
space:
mode:
authorajs <ajs>2004-12-11 18:00:06 +0000
committerajs <ajs>2004-12-11 18:00:06 +0000
commit1a42a75ba4be1cf3001ca245e22dc7e38b496aba (patch)
treef644385d156c9adef3e8d1febc18928f85e14112 /ospfd/ospf_nsm.c
parent6df9707469f7a011ca5a1244d14fec65c2f96065 (diff)
downloadquagga-1a42a75ba4be1cf3001ca245e22dc7e38b496aba.tar.bz2
quagga-1a42a75ba4be1cf3001ca245e22dc7e38b496aba.tar.xz
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.
Diffstat (limited to 'ospfd/ospf_nsm.c')
-rw-r--r--ospfd/ospf_nsm.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c
index e77546aa..ce84624b 100644
--- a/ospfd/ospf_nsm.c
+++ b/ospfd/ospf_nsm.c
@@ -689,7 +689,7 @@ nsm_change_state (struct ospf_neighbor *nbr, int state)
/* 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 @@ nsm_change_state (struct ospf_neighbor *nbr, int state)
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);