]> git.proxmox.com Git - mirror_frr.git/blobdiff - bfdd/ptm_adapter.c
lib: fix bfd multihop
[mirror_frr.git] / bfdd / ptm_adapter.c
index 4135e5fb493d2d6301872ad00d4ac87e11523ccc..838acf450fec934420f696aff0b26c490cdbbe14 100644 (file)
@@ -232,7 +232,7 @@ int ptm_bfd_notify(struct bfd_session *bs, uint8_t notify_state)
        stream_putl(msg, ZEBRA_INTERFACE_BFD_DEST_UPDATE);
 
        /* NOTE: Interface is a shortcut to avoid comparing source address. */
-       if (bs->ifp != NULL)
+       if (!CHECK_FLAG(bs->flags, BFD_SESS_FLAG_MH) && bs->ifp != NULL)
                stream_putl(msg, bs->ifp->ifindex);
        else
                stream_putl(msg, IFINDEX_INTERNAL);