summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-28 13:33:44 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-06-01 17:08:29 +0200
commitedc3622d8283b8d8fb66b08d7b1256b75b1a7617 (patch)
tree6954634fef24f165cb7f131688d261acbe9aca28 /bfdd
parentlib: fix default ttl for single-hop bfd sessions (diff)
downloadfrr-edc3622d8283b8d8fb66b08d7b1256b75b1a7617.tar.xz
frr-edc3622d8283b8d8fb66b08d7b1256b75b1a7617.zip
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>
Diffstat (limited to 'bfdd')
-rw-r--r--bfdd/bfd_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/bfd_packet.c b/bfdd/bfd_packet.c
index c871e2abe..3d6ca6ddd 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. */