aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_api.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/vnet/fib/fib_api.c b/src/vnet/fib/fib_api.c
index 3ccb9cab5ae..75a17cfca02 100644
--- a/src/vnet/fib/fib_api.c
+++ b/src/vnet/fib/fib_api.c
@@ -294,22 +294,17 @@ fib_api_path_decode (vl_api_fib_path_t *in,
if (!(out->frp_flags & FIB_ROUTE_PATH_BIER_IMP))
{
- fib_api_next_hop_decode(in, &out->frp_addr);
+ index_t bdti;
- if (ip46_address_is_zero(&out->frp_addr))
+ bdti = bier_disp_table_find(ntohl(in->table_id));
+
+ if (INDEX_INVALID != bdti)
+ {
+ out->frp_fib_index = bdti;
+ }
+ else
{
- index_t bdti;
-
- bdti = bier_disp_table_find(ntohl(in->table_id));
-
- if (INDEX_INVALID != bdti)
- {
- out->frp_fib_index = bdti;
- }
- else
- {
- return (VNET_API_ERROR_NO_SUCH_FIB);
- }
+ return (VNET_API_ERROR_NO_SUCH_FIB);
}
}
break;