Skip to content

Commit 3f94ae1

Browse files
committed
Fix send Encap Map Req to Map Resolver
1 parent 970b42f commit 3f94ae1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

oor/control/lisp_xtr.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ send_map_request_retry_cb(oor_timer_t *timer)
976976
}
977977

978978

979-
/* Sends a Map-Request for EID in 'mce' and sets-up a retry timer */
979+
/* Sends Encap Map-Request for EID in 'mce' and sets-up a retry timer */
980980
static int
981981
build_and_send_map_request(lisp_xtr_t *xtr, lisp_addr_t *seid,
982982
mcache_entry_t *mce, uint64_t nonce)
@@ -1004,6 +1004,7 @@ build_and_send_map_request(lisp_xtr_t *xtr, lisp_addr_t *seid,
10041004
OOR_LOG(LDBG_1, "locators for req: %s", laddr_list_to_char(rlocs));
10051005
b = lisp_msg_mreq_create(seid, rlocs, deid);
10061006
if (b == NULL) {
1007+
OOR_LOG(LDBG_1, "build_and_send_map_request: Couldn't create map request message");
10071008
glist_destroy(rlocs);
10081009
return(BAD);
10091010
}
@@ -1017,6 +1018,9 @@ build_and_send_map_request(lisp_xtr_t *xtr, lisp_addr_t *seid,
10171018

10181019

10191020
/* Encapsulate message and send it to the map resolver */
1021+
1022+
lisp_msg_encap(b, LISP_CONTROL_PORT, LISP_CONTROL_PORT, seid, deid);
1023+
10201024
srloc = NULL;
10211025
drloc = get_map_resolver(xtr);
10221026
if (!drloc){

0 commit comments

Comments
 (0)