]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: trap on state change seems to send incorrect value for ospfNbrState
authorFernando Soto <fsoto@bluecatnetworks.com>
Mon, 11 May 2015 20:52:00 +0000 (20:52 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:31 +0000 (15:33 +0000)
commit66239ca6fe4e688b1069f293f3248004e4934d35
treeda4c009bda31ac726c7cd307b8b9406196b81115
parentcdd0c84970dfa98e0232011eb7c7241805c9e4eb
ospfd: trap on state change seems to send incorrect value for ospfNbrState

The ospfNbrState in the ospf trap sent from ospfd shows an incorrect state.

For example, when the connection goes down, the ospfNbrState in the trap is
sent as '8' (full).  When the connection is reestablished, the state is sent
as '7' (loading).

The reason seems to be that the trap is sent from nsm_notice_state_change()
before the state is actually updated by calling nsm_change_state().

After applying the attached patch, the traps are sent with nbrState '1' when
the connection goes down and '8' when it goes back up.

Bugzilla #833 https://bugzilla.quagga.net/show_bug.cgi?id=833

(cherry picked from commit b6404390a713144252b62f49a328315d1952c6d8)
ospfd/ospf_nsm.c