]> git.ipfire.org Git - thirdparty/bird.git/commit
BFD: Dispatch sessions also by interface index
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 10 Jan 2021 14:29:02 +0000 (15:29 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sun, 10 Jan 2021 14:29:02 +0000 (15:29 +0100)
commit910adaa08bbd416288797505399ab47f990817e6
tree1bb8dc591845949a87719e4a9e23ab24c012e6cf
parent17663b6a7c505226cfe9ccc0671611075a3dff57
BFD: Dispatch sessions also by interface index

Direct BFD sessions needs to be dispatched not only by IP addresses, but
also by interfaces, in order to avoid collisions between neighbors with
the same IPv6 link-local addresses.

Extend BFD session hash_ip key by interface index to handle that. Use 0
for multihop sessions.

Thanks to Sebastian Hahn for the original patch.
proto/bfd/bfd.c
proto/bfd/bfd.h
proto/bfd/packets.c