]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Send c-bit when not using bfdd as daemon of choice 9504/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 27 Aug 2021 13:32:27 +0000 (09:32 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 27 Aug 2021 13:32:27 +0000 (09:32 -0400)
Commit: 4b983eef2cb5c7306a8303f002d0e053ebeabdca

Modified the zapi send receive of the c-bit to only
be under the HAVE_BFDD.  If you are using ptm-bfd
then the decoder function still expects this to be
sent down.  This commit puts this behavior back

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/bfd.c

index 1a45ea1ff5ddba2d644963f10dad11fee173aa0f..ea363b7ca4a3404faf1f52d07b16615424eb44ab 100644 (file)
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -366,6 +366,9 @@ int zclient_bfd_command(struct zclient *zc, struct bfd_session_arg *args)
                if (args->ifnamelen)
                        stream_put(s, args->ifname, args->ifnamelen);
        }
+
+       /* Send the C bit indicator. */
+       stream_putc(s, args->cbit);
 #endif /* HAVE_BFDD */
 
        /* Finish the message by writing the size. */