From 6e72876478bf4dde05ef46b07b15beb818b313b2 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Mon, 26 Aug 2019 17:06:10 -0400 Subject: [PATCH] zebra: TODO for hanlding blackhole attr exclusive Add a TODO statement for handling the exclusiveness of blackhole attributes. Signed-off-by: Stephen Worley --- zebra/rt_netlink.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index cdd7b5a92a..98fe8b2687 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -2004,7 +2004,8 @@ static int netlink_nexthop(int cmd, struct zebra_dplane_ctx *ctx) &nh->gate.ipv6, IPV6_MAX_BYTELEN); break; case NEXTHOP_TYPE_BLACKHOLE: - // TODO: Handle this + // TODO: Handle this, Can't have OIF/Encap with + // it addattr_l(&req.n, sizeof(req), NHA_BLACKHOLE, NULL, 0); break; @@ -2237,6 +2238,7 @@ static struct nexthop netlink_nexthop_process_nh(struct rtattr **tb, if (tb[NHA_ENCAP] && tb[NHA_ENCAP_TYPE]) { uint16_t encap_type = *(uint16_t *)RTA_DATA(tb[NHA_ENCAP_TYPE]); int num_labels = 0; + mpls_label_t labels[MPLS_MAX_LABELS] = {0}; if (encap_type == LWTUNNEL_ENCAP_MPLS)