]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Revert "zebra: Add ability to note that a address is NOPREFIXROUTE"
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 21 Jan 2024 21:14:06 +0000 (23:14 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 21 Jan 2024 21:14:06 +0000 (23:14 +0200)
This reverts commit e2b180cc902ee92a464c997f0ab6663ac3986266.

zebra/if_netlink.c
zebra/zebra_dplane.c
zebra/zebra_dplane.h

index bd684453cd30ded1022daeb6abcfcce8d62bf4a9..ed2e0a224e05ca8e1fde2aceacbdcbc15f728e0e 100644 (file)
@@ -1474,9 +1474,6 @@ int netlink_interface_addr_dplane(struct nlmsghdr *h, ns_id_t ns_id,
        if (kernel_flags & IFA_F_SECONDARY)
                dplane_ctx_intf_set_secondary(ctx);
 
-       if (kernel_flags & IFA_F_NOPREFIXROUTE)
-               dplane_ctx_intf_set_noprefixroute(ctx);
-
        /* Label */
        if (tb[IFA_LABEL]) {
                label = (char *)RTA_DATA(tb[IFA_LABEL]);
index f3441f5f2783774c1d0427df32d7914e5c4cfb31..0b406311c90a4c9c55b6136c8a95973962402ef4 100644 (file)
@@ -230,7 +230,6 @@ struct dplane_intf_info {
 #define DPLANE_INTF_BROADCAST   (1 << 2)
 #define DPLANE_INTF_HAS_DEST    DPLANE_INTF_CONNECTED
 #define DPLANE_INTF_HAS_LABEL   (1 << 4)
-#define DPLANE_INTF_NOPREFIXROUTE (1 << 5)
 
        /* Interface address/prefix */
        struct prefix prefix;
@@ -2542,13 +2541,6 @@ bool dplane_ctx_intf_is_connected(const struct zebra_dplane_ctx *ctx)
        return (ctx->u.intf.flags & DPLANE_INTF_CONNECTED);
 }
 
-bool dplane_ctx_intf_is_noprefixroute(const struct zebra_dplane_ctx *ctx)
-{
-       DPLANE_CTX_VALID(ctx);
-
-       return (ctx->u.intf.flags & DPLANE_INTF_NOPREFIXROUTE);
-}
-
 bool dplane_ctx_intf_is_secondary(const struct zebra_dplane_ctx *ctx)
 {
        DPLANE_CTX_VALID(ctx);
@@ -2577,13 +2569,6 @@ void dplane_ctx_intf_set_secondary(struct zebra_dplane_ctx *ctx)
        ctx->u.intf.flags |= DPLANE_INTF_SECONDARY;
 }
 
-void dplane_ctx_intf_set_noprefixroute(struct zebra_dplane_ctx *ctx)
-{
-       DPLANE_CTX_VALID(ctx);
-
-       ctx->u.intf.flags |= DPLANE_INTF_NOPREFIXROUTE;
-}
-
 void dplane_ctx_intf_set_broadcast(struct zebra_dplane_ctx *ctx)
 {
        DPLANE_CTX_VALID(ctx);
index 6dc52ead143e8c798e76fd35c17389ba3699c261..87c2e03656778f6653afc056de138927a0868f1f 100644 (file)
@@ -658,8 +658,6 @@ bool dplane_ctx_intf_is_connected(const struct zebra_dplane_ctx *ctx);
 void dplane_ctx_intf_set_connected(struct zebra_dplane_ctx *ctx);
 bool dplane_ctx_intf_is_secondary(const struct zebra_dplane_ctx *ctx);
 void dplane_ctx_intf_set_secondary(struct zebra_dplane_ctx *ctx);
-bool dplane_ctx_intf_is_noprefixroute(const struct zebra_dplane_ctx *ctx);
-void dplane_ctx_intf_set_noprefixroute(struct zebra_dplane_ctx *ctx);
 bool dplane_ctx_intf_is_broadcast(const struct zebra_dplane_ctx *ctx);
 void dplane_ctx_intf_set_broadcast(struct zebra_dplane_ctx *ctx);
 const struct prefix *dplane_ctx_get_intf_addr(