From edc3622d8283b8d8fb66b08d7b1256b75b1a7617 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Fri, 28 May 2021 14:33:44 +0300 Subject: [PATCH] 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 --- bfdd/bfd_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c index c871e2abe1..3d6ca6ddd3 100644 --- a/bfdd/bfd_packet.c +++ b/bfdd/bfd_packet.c @@ -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. */