LISP: Fix fwd adding, VPP-607
Change-Id: Ie48209ba6d9aab0c5cfbd7b3cce4114cf88f952c Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
1b3d4ded5f
commit
12713c70fc
@ -512,7 +512,12 @@ dp_add_fwd_entry (lisp_cp_main_t * lcm, u32 src_map_index, u32 dst_map_index)
|
||||
pool_get (lcm->fwd_entry_pool, fe);
|
||||
fe->locator_pairs = a->locator_pairs;
|
||||
gid_address_copy (&fe->reid, &a->rmt_eid);
|
||||
gid_address_copy (&fe->leid, &a->lcl_eid);
|
||||
|
||||
if (is_src_dst)
|
||||
gid_address_copy (&fe->leid, &a->lcl_eid);
|
||||
else
|
||||
gid_address_copy (&fe->leid, &src_map->eid);
|
||||
|
||||
fe->is_src_dst = is_src_dst;
|
||||
hash_set (lcm->fwd_entry_by_mapping_index, dst_map_index,
|
||||
fe - lcm->fwd_entry_pool);
|
||||
|
Reference in New Issue
Block a user