diff options
author | 2017-06-15 15:44:14 -0700 | |
---|---|---|
committer | 2017-06-16 11:39:27 +0000 | |
commit | b5c29f9c2218e6242d5f126bc490abf27fd39f4c (patch) | |
tree | e519634e82d16187de639c7b1c9ee216d65e7e06 /src/vnet | |
parent | dd37e13d5c2a3e82f05fa67f7d95a02d3ee2c5d4 (diff) |
Fix gpe_native_fwd_rpaths_get (VPP-883)
Change-Id: Iab2aa5fd92b9e95049f55fce4177e236a482723c
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/lisp-gpe/lisp_gpe_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe_api.c b/src/vnet/lisp-gpe/lisp_gpe_api.c index f026e8b0..364bee0c 100644 --- a/src/vnet/lisp-gpe/lisp_gpe_api.c +++ b/src/vnet/lisp-gpe/lisp_gpe_api.c @@ -476,12 +476,14 @@ gpe_native_fwd_rpaths_copy (vl_api_gpe_native_fwd_rpath_t * dst, fib_route_path_t * src, u8 is_ip4) { fib_route_path_t *e; + fib_table_t *table; u32 i = 0; vec_foreach (e, src) { memset (&dst[i], 0, sizeof (*dst)); - dst[i].fib_index = e->frp_fib_index; + table = fib_table_get (e->frp_fib_index, e->frp_proto); + dst[i].fib_index = table->ft_table_id; dst[i].nh_sw_if_index = e->frp_sw_if_index; dst[i].is_ip4 = is_ip4; if (is_ip4) |