diff options
author | ajs <ajs> | 2004-12-11 18:00:06 +0000 |
---|---|---|
committer | ajs <ajs> | 2004-12-11 18:00:06 +0000 |
commit | 3aa8d5f9893c182eb27f0f6ab354a77edbf1b9f0 (patch) | |
tree | b2cc0ac454542e114bf3fcb4d85c62d9074903f1 /ospfd/ospf_nsm.c | |
parent | 3378d2099440cb3a14dc7531a3221d4140e186e2 (diff) |
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.c | 9 |
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); |