]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix bgp_node locking issues
authorChris Caputo <ccaputo@alt.net>
Tue, 27 Jul 2010 16:28:55 +0000 (16:28 +0000)
committerPaul Jakma <paul@quagga.net>
Mon, 21 Mar 2011 13:15:32 +0000 (13:15 +0000)
commit6c88b44dcb26b60bb1f93e5c387aa102019ed849
tree772aacb2702dd635ca271ceca966986e38ecb3be
parentcca85d27a59c31e1b20e4c4adc7d9bb57606e584
bgpd: fix bgp_node locking issues

* bgpd: Connected table locks were being locked but not unlocked, such that
  eventually a lock would exceed 2^31 and become negative, thus triggering
  an assert later on.
* bgp_main.c: (bgp_exit) delete connected elements along with ifp's.
* bgp_nexthop.c: (bgp_nexthop_lookup{,_ipv6}) add missing unlocks
  (bgp_multiaccess_check_v4) ditto
  (bgp_connected_{add,delete}) Use a distinct memtype for bgp_connected_ref.
  (bgp_scan_finish) reset the nexthop cache to clean it up when bgpd exits
* bgp_route.c: fix missing bgp_node unlocks
* lib/memtype.c: (memory_list_bgp) add MTYPE_BGP_CONN
* testing: has been tested for almost 2 months now.
bgpd/bgp_main.c
bgpd/bgp_nexthop.c
bgpd/bgp_route.c
lib/memtypes.c