]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Increase nexthop flags size to 16 bits
authorDonald Sharp <sharpd@nvidia.com>
Thu, 23 Jun 2022 14:22:45 +0000 (10:22 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 23 Jun 2022 15:23:37 +0000 (11:23 -0400)
commit: 5609e70fb87a3b23b55629a33e5afb298974c142
Added a new flag to the `struct nexthop` and
this addition of a flag caused the flags size to
be too small.  Increase the size of flags to
allow more flags to be had.

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

index e324e584914c0f86d2511085ced7aac58a884127..c939fd37e3f8988be735a41bdf824bfd1caf115e 100644 (file)
@@ -81,7 +81,7 @@ struct nexthop {
 
        enum nexthop_types_t type;
 
-       uint8_t flags;
+       uint16_t flags;
 #define NEXTHOP_FLAG_ACTIVE     (1 << 0) /* This nexthop is alive. */
 #define NEXTHOP_FLAG_FIB        (1 << 1) /* FIB nexthop. */
 #define NEXTHOP_FLAG_RECURSIVE  (1 << 2) /* Recursive nexthop. */