bfdd: don't store interface pointer for multihop sessions

It breaks "neighbor A.B.C.D update-source" config in BGP.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2021-05-28 14:33:44 +03:00
parent 7bb5c50c83
commit edc3622d82

View File

@ -656,7 +656,7 @@ int bfd_recv_cb(struct thread *t)
* If no interface was detected, save the interface where the
* packet came in.
*/
if (bfd->ifp == NULL)
if (!is_mhop && bfd->ifp == NULL)
bfd->ifp = if_lookup_by_index(ifindex, vrfid);
/* Log remote discriminator changes. */