Merge pull request #7558 from opensourcerouting/bfd-v6-same

bfdd: fix multiple links same address
This commit is contained in:
Donald Sharp 2020-11-18 17:53:42 -05:00 committed by GitHub
commit f2e1528b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1743,9 +1743,12 @@ struct bfd_session *bfd_key_lookup(struct bfd_key key)
/* Handle case where a context more complex ctx is present.
* input has no iface nor local-address, but a context may
* exist
* exist.
*
* Only applies to IPv4, because IPv6 requires either
* local-address or interface.
*/
if (!bs.key.mhop) {
if (!bs.key.mhop && bs.key.family == AF_INET) {
ctx.result = NULL;
ctx.given = &bs;
hash_walk(bfd_key_hash, &bfd_key_lookup_ignore_partial_walker,