Skip to content

Commit 12713c7

Browse files
Filip TehlarDamjan Marion
authored andcommitted
LISP: Fix fwd adding, VPP-607
Change-Id: Ie48209ba6d9aab0c5cfbd7b3cce4114cf88f952c Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
1 parent 1b3d4de commit 12713c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

vnet/vnet/lisp-cp/control.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,12 @@ dp_add_fwd_entry (lisp_cp_main_t * lcm, u32 src_map_index, u32 dst_map_index)
512512
pool_get (lcm->fwd_entry_pool, fe);
513513
fe->locator_pairs = a->locator_pairs;
514514
gid_address_copy (&fe->reid, &a->rmt_eid);
515-
gid_address_copy (&fe->leid, &a->lcl_eid);
515+
516+
if (is_src_dst)
517+
gid_address_copy (&fe->leid, &a->lcl_eid);
518+
else
519+
gid_address_copy (&fe->leid, &src_map->eid);
520+
516521
fe->is_src_dst = is_src_dst;
517522
hash_set (lcm->fwd_entry_by_mapping_index, dst_map_index,
518523
fe - lcm->fwd_entry_pool);

0 commit comments

Comments
 (0)