diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-08-26 23:06:10 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 17:13:42 +0200 |
commit | 6e72876478bf4dde05ef46b07b15beb818b313b2 (patch) | |
tree | 2b3449dcf1b50d37a620b5b3255f3dddd2269f57 /zebra/rt_netlink.c | |
parent | zebra: Use nexthop object id on route delete (diff) | |
download | frr-6e72876478bf4dde05ef46b07b15beb818b313b2.tar.xz frr-6e72876478bf4dde05ef46b07b15beb818b313b2.zip |
zebra: TODO for hanlding blackhole attr exclusive
Add a TODO statement for handling the exclusiveness
of blackhole attributes.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r-- | zebra/rt_netlink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index cdd7b5a92..98fe8b268 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) |