diff options
author | Neale Ranns <nranns@cisco.com> | 2016-10-20 13:39:34 +0100 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2016-10-25 15:09:10 +0000 |
commit | 948e00ff5eded0806fc7f54e8f3943aade2bd14a (patch) | |
tree | 500ed052d71f7ae81d1f8c5a6449e70c0de0aa40 /plugins | |
parent | dc5aac5c392c977d011233c374154cd83dcebf36 (diff) |
Support IETF routing Yang models (VPP-503).
Add support for special routes to send ICMP unreachable or admin prohibited.
Change-Id: Ia1ac65b0e5e925c0f9ebc7824141833b4e18f05e
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ila-plugin/ila/ila.c | 2 | ||||
-rw-r--r-- | plugins/lb-plugin/lb/lb.c | 2 | ||||
-rw-r--r-- | plugins/sixrd-plugin/sixrd/sixrd.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ila-plugin/ila/ila.c b/plugins/ila-plugin/ila/ila.c index 029dd219467..90dde5f25af 100644 --- a/plugins/ila-plugin/ila/ila.c +++ b/plugins/ila-plugin/ila/ila.c @@ -752,7 +752,7 @@ ila_add_del_entry (ila_add_del_entry_args_t * args) /* * Create a route that results in the ILA entry */ - dpo_id_t dpo = DPO_NULL; + dpo_id_t dpo = DPO_INVALID; fib_prefix_t pfx = { .fp_addr = { .ip6 = e->ila_address, diff --git a/plugins/lb-plugin/lb/lb.c b/plugins/lb-plugin/lb/lb.c index 69bd660aba3..1d9b987095b 100644 --- a/plugins/lb-plugin/lb/lb.c +++ b/plugins/lb-plugin/lb/lb.c @@ -594,7 +594,7 @@ int lb_vip_del_ass(u32 vip_index, ip46_address_t *addresses, u32 n) static void lb_vip_add_adjacency(lb_main_t *lbm, lb_vip_t *vip) { dpo_proto_t proto = 0; - dpo_id_t dpo = DPO_NULL; + dpo_id_t dpo = DPO_INVALID; fib_prefix_t pfx = {}; if (lb_vip_is_ip4(vip)) { pfx.fp_addr.ip4 = vip->prefix.ip4; diff --git a/plugins/sixrd-plugin/sixrd/sixrd.c b/plugins/sixrd-plugin/sixrd/sixrd.c index 65d353a4592..cdc0c880356 100644 --- a/plugins/sixrd-plugin/sixrd/sixrd.c +++ b/plugins/sixrd-plugin/sixrd/sixrd.c @@ -40,7 +40,7 @@ sixrd_create_domain (ip6_address_t *ip6_prefix, u32 *sixrd_domain_index, u16 mtu) { - dpo_id_t dpo_v6 = DPO_NULL, dpo_v4 = DPO_NULL; + dpo_id_t dpo_v6 = DPO_INVALID, dpo_v4 = DPO_INVALID; sixrd_main_t *mm = &sixrd_main; fib_node_index_t fei; sixrd_domain_t *d; @@ -94,7 +94,7 @@ sixrd_create_domain (ip6_address_t *ip6_prefix, if (FIB_NODE_INDEX_INVALID != fei) { - dpo_id_t dpo = DPO_NULL; + dpo_id_t dpo = DPO_INVALID; if (fib_entry_get_dpo_for_source (fei, FIB_SOURCE_SIXRD, &dpo)) { |