]> git.puffer.fish Git - matthieu/frr.git/commit
bfdd: Make new multihop peer if local-address is unique
authorTashana Mehta-Wilson <tashana.mehta-wilson@alliedtelesis.co.nz>
Tue, 29 Sep 2020 00:47:53 +0000 (13:47 +1300)
committerTashana Mehta-Wilson <tashana.mehta-wilson@alliedtelesis.co.nz>
Tue, 29 Sep 2020 02:30:56 +0000 (15:30 +1300)
commitd0df29bae85240a1e0af6c141fb6f7a6125d9da8
tree60ef563f8a1d35924ce909400ee4a717be414e8f
parentf9c84061708da00de983109d0815975822dfc53a
bfdd: Make new multihop peer if local-address is unique

Previously if there were two multihop peers created that had the same
peer address but different local addresses then the second peer to be
created would be merged with the first one and niether would be able to
be deleted. This was due to an issue in the function bfd_key_lookup().
When the second peer was created its key would be sent into the lookup
function and would reach the last section, even though it shouldn't
have. A check has been placed around the section so that it will not be
entered if a peer is multihop.

Signed-off-by: Tashana Mehta-Wilson <tashana.mehta-wilson@alliedtelesis.co.nz>
bfdd/bfd.c