]> git.proxmox.com Git - mirror_frr.git/commit
ldpd: fix bug with dual-stack neighbors
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 24 Jul 2017 21:57:20 +0000 (18:57 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 24 Jul 2017 22:43:09 +0000 (19:43 -0300)
commit69f93be55a9146ba58e814964a77961cdba13bf9
tree9fc814b37f15d3beb04b9ea57d56a6e2c7e291b3
parent1e4d264f2bce049de4a7e90d2f7b9c1673b14c57
ldpd: fix bug with dual-stack neighbors

We were assuming that a neighbor can be deleted only when all of its
adjacencies are dead. This is not the case for dual-stack neighbors. If
the transport-preference is IPv4 and all adjacencies are IPv6 (or
vice-versa), then it should be deleted and everything cleaned-up
accordingly.

Bug exposed by the new RB tree implementation on master, but the fix
also applies to stable/3.0.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ldpd/neighbor.c