]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bfdd: don't store interface pointer for multihop sessions
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 28 May 2021 11:33:44 +0000 (14:33 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 8 Jun 2021 17:50:38 +0000 (20:50 +0300)
It breaks "neighbor A.B.C.D update-source" config in BGP.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bfdd/bfd_packet.c

index c871e2abe1e9aebcfe41dc86d0d43608afb1769a..3d6ca6ddd34863ba2c69fd79ce56efba5be672d6 100644 (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. */