<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym18_1_1458732017449_6758"><span>Hi again,</span></div><div id="yui_3_16_0_ym18_1_1458732017449_6783"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym18_1_1458732017449_6695"><span id="yui_3_16_0_ym18_1_1458732017449_6694">I sent the email below yesterday but since I haven't received it in my inbox from the mailing list couple with the fact I was asked to re-enable my membership of the list, which was disabled due to "excessive bounces" (obviously for attaching heavy trace files to my emails), I decided to send it again. Apologies, if it was received already. It reads:</span></div><div dir="ltr" id="yui_3_16_0_ym18_1_1458732017449_6695"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym18_1_1458732017449_6695"><span id="yui_3_16_0_ym18_1_1458732017449_7088">-------</span></div><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4597" class=""><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4859" class="">Hi Albert,</span></div><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4596" class=""><br clear="none" id="yui_3_16_0_ym18_1_1458732017449_6980" class=""></div><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">We have finally solved the issue by using the pkt_pull functions as below:</div><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class=""><br clear="none" id="yui_3_16_0_ym18_1_1458732017449_6984" class=""></div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">send_msg(&xtr->super, mrep, uc);</div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">pkt_pull_ip(mrep);</div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">pkt_pull_udp(mrep);</div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class=""><br clear="none" id="yui_3_16_0_ym18_1_1458732017449_6990" class=""></div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">And using the send_msg() again, we are able to send the same packet, so we just change the uc to point to the loc-server.</div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class=""><br clear="none" id="yui_3_16_0_ym18_1_1458732017449_6994" class=""></div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">Thanks a lot.</div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">-------</div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class=""><br></div><div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4595" class="">Have a wonderful break.</div><div></div><div id="yui_3_16_0_ym18_1_1458732017449_6693"> </div><div class="signature" id="yui_3_16_0_ym18_1_1458732017449_6688"><div id="yui_3_16_0_ym18_1_1458732017449_6687"><div style="font-family:Tahoma;font-size:13px;" class="yui_3_2_0_18_1337194888927129" id="yui_3_16_0_ym18_1_1458732017449_6686"><div style="font-family:arial;font-size:13px;" id="yui_3_16_0_ym18_1_1458732017449_6685"><div class="MsoNormal" id="yui_3_16_0_ym18_1_1458732017449_6692"><span style="color:rgb(79, 129, 189);font-family:Euphemia, sans-serif;font-size:10pt;">Musab Isah</span><br></div><div class="MsoNormal" id="yui_3_16_0_ym18_1_1458732017449_6691"><span style="font-size:10.0pt;color:#4F81BD;" id="yui_3_16_0_ym18_1_1458732017449_6974">Research Student,</span></div><div class="MsoNormal" id="yui_3_16_0_ym18_1_1458732017449_6690"><span style="font-size:10.0pt;color:#4F81BD;" id="yui_3_16_0_ym18_1_1458732017449_7042">School of Computing and Communications,</span></div><div class="MsoNormal" id="yui_3_16_0_ym18_1_1458732017449_6689"><span style="font-size:10.0pt;color:#4F81BD;" id="yui_3_16_0_ym18_1_1458732017449_7036">D29, InfoLab21</span></div><div class="MsoNormal" id="yui_3_16_0_ym18_1_1458732017449_6684"><span style="font-size:10.0pt;color:#4F81BD;">Lancaster University</span></div></div></div></div></div><div class="qtdSeparateBR" id="yui_3_16_0_ym18_1_1458732017449_6683"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym18_1_1458732017449_6623" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym18_1_1458732017449_6622"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym18_1_1458732017449_6621"> <div dir="ltr" id="yui_3_16_0_ym18_1_1458732017449_6620"> <font size="2" face="Arial" id="yui_3_16_0_ym18_1_1458732017449_6619"> <hr size="1" id="yui_3_16_0_ym18_1_1458732017449_6638"> <b><span style="font-weight:bold;">From:</span></b> MUSAB MUHAMMAD <nmusabu@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Albert <alopez@ac.upc.edu>; "users@openoverlayrouter.org" <users@openoverlayrouter.org> <br><b><span style="font-weight: bold;">Cc:</span></b> Steven Simpson <ss@comp.lancs.ac.uk><br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, March 22, 2016 11:16 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [LISPmob-users] Modifying LISPMob Code<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym18_1_1458732017449_6759"><br><div id="yiv4239732311"><div id="yui_3_16_0_ym18_1_1458732017449_6761"><div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;" id="yui_3_16_0_ym18_1_1458732017449_6760"><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4597"><br></div><div></div><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4594"> </div><div class="yiv4239732311signature" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4491"><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4490"><div class="yiv4239732311yui_3_2_0_18_1337194888927129" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4489" style="font-family:Tahoma;font-size:13px;"><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4488" style="font-family:arial;font-size:13px;"><div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4593"><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4724" style="color:rgb(79, 129, 189);font-family:Euphemia, sans-serif;font-size:10pt;">Musab Isah</span><br clear="none"></div><div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4592"><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4723" style="font-size:10.0pt;color:#4F81BD;">Research Student,</span></div><div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4487"><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4722" style="font-size:10.0pt;color:#4F81BD;">School of Computing and Communications,</span></div><div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4591"><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4721" style="font-size:10.0pt;color:#4F81BD;">D29, InfoLab21</span></div><div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4590"><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4720" style="font-size:10.0pt;color:#4F81BD;">Lancaster University</span></div></div></div></div></div><div class="yiv4239732311qtdSeparateBR" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4501"><br clear="none"><br clear="none"></div><div class="yiv4239732311yqt8980696111" id="yiv4239732311yqt77893"><div class="yiv4239732311yahoo_quoted" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4588" style="display:block;"> <div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4587" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4586" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div dir="ltr" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4589"> <font id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4717" size="2" face="Arial"> </font><hr id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4719" size="1"> <b><span style="font-weight:bold;">From:</span></b> Albert <alopez@ac.upc.edu><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> MUSAB MUHAMMAD <nmusabu@yahoo.com>; "users@openoverlayrouter.org" <users@openoverlayrouter.org> <br clear="none"><b><span style="font-weight:bold;">Cc:</span></b> Steven Simpson <ss@comp.lancs.ac.uk><br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Tuesday, March 15, 2016 10:15 AM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: [LISPmob-users] Modifying LISPMob Code<br clear="none"> </div> <div class="yiv4239732311y_msg_container" id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4585"><br clear="none"><div id="yiv4239732311"><div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4718">
Hi Musab,<br clear="none">
<br clear="none">
You probably see a Map-Referral because you are reusing the
buffer(lbuf_t). When you call the function to send the packet, the
ip and udp packets are added to the buffer of the message so when
you try to reuse the packet, the pointers of the buffer have been
modified and results in a packet that is different from what you
expect. To understand what I am explaining, have a look on lbuf_t,
tun_control_dp_send_msg which use the function pkt_push_udp_and_ip.<br clear="none">
<br clear="none">
Best regards<br clear="none">
<br clear="none">
Albert <br clear="none">
<br clear="none">
<br clear="none">
El 14/03/16 a les 13:13, MUSAB MUHAMMAD ha escrit:<br clear="none">
<div class="yiv4239732311yqt4541816526" id="yiv4239732311yqt81775"><blockquote id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4862" type="cite">
<div id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4861" style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12621"><span id="yiv4239732311yui_3_16_0_ym18_1_1458644612754_4860">Hi Albert,</span></div>
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12620"><span><br clear="none">
</span></div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619"><span id="yiv4239732311yui_3_16_0_1_1457901218505_12632">Just an update to the
questions I sent earlier. I realised that immediately
duplicating the existing '</span>send_msg(&xtr->super,
mrep, uc)', i.e.:</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619"><br clear="none">
</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619">send_msg(&xtr->super,
mrep, uc);<br clear="none">
</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619">send_msg(&xtr->super,
mrep, uc);<br clear="none">
</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619"><br clear="none">
</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619">...produces
a Map-Reply followed by a Map-Referral, so the problem is not
necessarily related to using the alternative uconn_t nuc. A
lisp_msg_hdr_to_char(mrep) call between them suggests that
mrep hasn't changed. If we duplicate the whole code that
builds up mrep, the second message is a Map-Reply, but with 0
records.</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619"><br clear="none">
</div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12619">There seems
to be state in xtr->super and/or xtr->local_mdb that
changes the interpretation/creation of mrep. Maybe we should
just try to send a non-LISP message (to our location server),
if we can get hold of the right socket that send_msg is using,
and use send_raw_packet on it...?</div>
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12630"> </div>
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12630">Regards,</div>
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12630"><br clear="none">
</div>
<div class="yiv4239732311signature" id="yiv4239732311yui_3_16_0_1_1457901218505_12616">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12615">
<div class="yiv4239732311yui_3_2_0_18_1337194888927129" id="yiv4239732311yui_3_16_0_1_1457901218505_12614" style="font-family:Tahoma;font-size:13px;">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12613" style="font-family:arial;font-size:13px;">
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457901218505_12618"><span id="yiv4239732311yui_3_16_0_1_1457901218505_13035" style="color:rgb(79, 129, 189);font-family:Euphemia, sans-serif;font-size:10pt;">Musab Isah</span><br clear="none">
</div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457901218505_12631"><span id="yiv4239732311yui_3_16_0_1_1457901218505_13042" style="font-size:10.0pt;color:#4F81BD;">Research
Student,</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457901218505_12617"><span style="font-size:10.0pt;color:#4F81BD;">School of
Computing and Communications,</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457901218505_13006"><span id="yiv4239732311yui_3_16_0_1_1457901218505_13043" style="font-size:10.0pt;color:#4F81BD;">D29, InfoLab21</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457901218505_12612"><span style="font-size:10.0pt;color:#4F81BD;">Lancaster
University</span></div>
</div>
</div>
</div>
</div>
<div class="yiv4239732311qtdSeparateBR" id="yiv4239732311yui_3_16_0_1_1457901218505_12506"><br clear="none">
<br clear="none">
</div>
<div class="yiv4239732311yahoo_quoted" id="yiv4239732311yui_3_16_0_1_1457901218505_12510" style="display:block;">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12509" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12508" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457901218505_12507"> <font id="yiv4239732311yui_3_16_0_1_1457901218505_12512" face="Arial" size="2">
</font><hr id="yiv4239732311yui_3_16_0_1_1457901218505_12611" size="1"> <b><span style="font-weight:bold;">From:</span></b> MUSAB
MUHAMMAD <a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:nmusabu@yahoo.com" target="_blank" href="mailto:nmusabu@yahoo.com"><nmusabu@yahoo.com></a><br clear="none">
<b><span style="font-weight:bold;">To:</span></b>
Albert López <a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:alopez@ac.upc.edu" target="_blank" href="mailto:alopez@ac.upc.edu"><alopez@ac.upc.edu></a>;
<a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:users@openoverlayrouter.org" target="_blank" href="mailto:users@openoverlayrouter.org">"users@openoverlayrouter.org"</a>
<a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:users@openoverlayrouter.org" target="_blank" href="mailto:users@openoverlayrouter.org"><users@openoverlayrouter.org></a> <br clear="none">
<b><span style="font-weight:bold;">Cc:</span></b>
Steven Simpson <a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:ss@comp.lancs.ac.uk" target="_blank" href="mailto:ss@comp.lancs.ac.uk"><ss@comp.lancs.ac.uk></a><br clear="none">
<b><span style="font-weight:bold;">Sent:</span></b>
Friday, March 11, 2016 7:16 PM<br clear="none">
<b><span style="font-weight:bold;">Subject:</span></b>
Re: [LISPmob-users] Modifying LISPMob Code<br clear="none">
</div>
<div class="yiv4239732311y_msg_container" id="yiv4239732311yui_3_16_0_1_1457901218505_12515"><br clear="none">
<div id="yiv4239732311">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12514">
<div id="yiv4239732311yui_3_16_0_1_1457901218505_12513" style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11267"><span id="yiv4239732311yui_3_16_0_1_1457696952929_11266">Hi Albert,</span></div>
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11267"><span><br clear="none">
</span></div>
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11267"><span id="yiv4239732311yui_3_16_0_1_1457696952929_11296">I have added the code
below on line 442 of
lispmob-0.5.1/lispd/control/lisp_xtr.c:</span></div>
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11267"><span><br clear="none">
</span></div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
/* SEND MAP-REPLY */</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
if (map_reply_fill_uconn(xtr, itr_rlocs, uc)
!= GOOD){</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
LMLOG(LDBG_1, "Couldn't send Map Reply, no
itr_rlocs reachable");</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
goto err;</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
}</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
LMLOG(LDBG_1, "Sending %s",
lisp_msg_hdr_to_char(mrep));</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
send_msg(&xtr->super, mrep, uc);</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">+++++++++++++++++line
441<br clear="none">
</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
uconn_t nuc = *uc;</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
nuc.ra = *xtr->loc_server;</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
assert(!xtr->signal_dropping);</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
if (xtr->signal_dropping) {</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
/* Send Map-Reply(NULL locator) to
loc-server. */</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
lisp_msg_put_neg_mapping(mrep, deid, 0,
ACT_NO_ACTION, A_NO_AUTHORITATIVE);</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
} else {</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
/* Send same Map-Reply to loc-server as
sent to PiTR. */</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
}</div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1457696952929_11267">
send_msg(&xtr->super, mrep, &nuc);</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411">+++++++++++++++</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411"><br clear="none">
</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411">Note
that xtr->signal_dropping is false.</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411"><br clear="none">
</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411">The
intention is to duplicate the map-reply message
sent to the PiTR by sending it to our
loc-server. But after observing the packets on
wireshark (see attached, filter 'lisp'), I
realised that the second map-reply packet is
actually sent as map-referral packet. What could
be possibly the reason for that please? Are
there any issues using the auto uconn_t
nuc? Will send_msg attempt to de-allocate it?
Can such an object created ad-hoc be used, or
does some other component need to be informed
before hand that the loc-server address is a
potential peer?</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411"><br clear="none">
</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411">Regards,</div>
<div class="yiv4239732311" dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11411"> </div>
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11265"> </div>
<div class="yiv4239732311signature" id="yiv4239732311yui_3_16_0_1_1457696952929_11236">
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11235">
<div class="yiv4239732311yui_3_2_0_18_1337194888927129" id="yiv4239732311yui_3_16_0_1_1457696952929_11234" style="font-family:Tahoma;font-size:13px;">
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11233" style="font-family:arial;font-size:13px;">
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457696952929_11264"><span id="yiv4239732311yui_3_16_0_1_1457696952929_13166" style="color:rgb(79, 129, 189);font-family:Euphemia, sans-serif;font-size:10pt;">Musab Isah</span><br clear="none">
</div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457696952929_11263"><span id="yiv4239732311yui_3_16_0_1_1457696952929_13165" style="font-size:10.0pt;color:#4F81BD;">Research
Student,</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457696952929_11297"><span id="yiv4239732311yui_3_16_0_1_1457696952929_11322" style="font-size:10.0pt;color:#4F81BD;">School
of Computing and Communications,</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457696952929_11232"><span id="yiv4239732311yui_3_16_0_1_1457696952929_13164" style="font-size:10.0pt;color:#4F81BD;">D29,
InfoLab21</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1457696952929_11262"><span id="yiv4239732311yui_3_16_0_1_1457696952929_13143" style="font-size:10.0pt;color:#4F81BD;">Lancaster
University</span></div>
</div>
</div>
</div>
</div>
<div class="yiv4239732311qtdSeparateBR" id="yiv4239732311yui_3_16_0_1_1457696952929_11246"><br clear="none">
<br clear="none">
</div>
<div class="yiv4239732311yqt0686308756" id="yiv4239732311yqt41887">
<div class="yiv4239732311yahoo_quoted" id="yiv4239732311yui_3_16_0_1_1457696952929_11240" style="display:block;">
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11239" style="font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11238" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1457696952929_11237">
<font id="yiv4239732311yui_3_16_0_1_1457696952929_11241" face="Arial" size="2"> </font>
<hr id="yiv4239732311yui_3_16_0_1_1457696952929_11245" size="1"> <b><span style="font-weight:bold;">From:</span></b>
Albert López <a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:alopez@ac.upc.edu" target="_blank" href="mailto:alopez@ac.upc.edu"><alopez@ac.upc.edu></a><br clear="none">
<b><span style="font-weight:bold;">To:</span></b>
MUSAB MUHAMMAD
<a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:nmusabu@yahoo.com" target="_blank" href="mailto:nmusabu@yahoo.com"><nmusabu@yahoo.com></a>;
<a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:users@openoverlayrouter.org" target="_blank" href="mailto:users@openoverlayrouter.org">"users@openoverlayrouter.org"</a>
<a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:users@openoverlayrouter.org" target="_blank" href="mailto:users@openoverlayrouter.org"><users@openoverlayrouter.org></a> <br clear="none">
<b><span style="font-weight:bold;">Cc:</span></b>
Steven Simpson
<a rel="nofollow" shape="rect" class="yiv4239732311moz-txt-link-rfc2396E" ymailto="mailto:ss@comp.lancs.ac.uk" target="_blank" href="mailto:ss@comp.lancs.ac.uk"><ss@comp.lancs.ac.uk></a><br clear="none">
<b><span style="font-weight:bold;">Sent:</span></b>
Thursday, March 3, 2016 2:53 PM<br clear="none">
<b><span style="font-weight:bold;">Subject:</span></b>
Re: [LISPmob-users] Modifying LISPMob
Code<br clear="none">
</div>
<div class="yiv4239732311y_msg_container" id="yiv4239732311yui_3_16_0_1_1457696952929_11242"><br clear="none">
<div id="yiv4239732311">
<div id="yiv4239732311yui_3_16_0_1_1457696952929_11244">
<div class="yiv4239732311moz-cite-prefix" id="yiv4239732311yui_3_16_0_1_1457696952929_11243">Hi Musab,<br clear="none">
<br clear="none">
First I would like to let you know
that we are now <a rel="nofollow" shape="rect" target="_blank" href="http://www.openoverlayrouter.org/">OpenOverlayRouter</a>.
If possible use the new OOR
mailing lists to contact us from
now on :)<br clear="none">
<br clear="none">
I will try to give you some
answers inline:<br clear="none">
<br clear="none">
On 01/03/16 18:40, MUSAB MUHAMMAD
wrote:<br clear="none">
</div>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div id="yiv4239732311yui_3_16_0_1_1456853527172_2190"><span>Hi
all,</span></div>
<div id="yiv4239732311yui_3_16_0_1_1456853527172_2190"><span><br clear="none">
</span></div>
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2190"><span class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2738" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">I
want to introduce a new
network entity, Location
Server (LS) for some reason,
and have MNs and PITRs
interact with it as follows:</span><br clear="none" class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2740" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">
</div>
<ul style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;margin-top:14pt;margin-bottom:14pt;" id="yiv4239732311yui_3_16_0_1_1456853527172_2742" class="yiv4239732311"><li class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2744">When
an MN detects its interface
signal dropping (which is
going to be determined by an
external program), <i class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2746">MN
should issue Map-Reply(LS)
to PITR, and
Map-Reply(NULL) to LS</i>.</li><li class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2748">When
an MN's interface comes back
up after binding to a new
address RLOC, and the MN
(eventually) issues
Map-Reply(RLOC) to PITR, <i class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2750">MN
should also issue
Map-Reply(RLOC) to LS</i>.</li></ul>
</div>
</blockquote>
Are you trying to modify the SMR
process to also send a Map Reply to
the LS with the specified RLOCs of
the previous point, or you are
sending directly map replys? <br clear="none">
<br clear="none">
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2752" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;margin-top:14pt;margin-bottom:14pt;">As
we know, a Solicit-Map-Request
(SMR) is sent to PITR at
interface up, and the PITR
sends a Map-Request to the MN,
which then sends a Map-Reply
with its new RLOC.
tr_recv_map_request() in
control/lisp_xtr.c appears to
handle the incoming
Map-Request and respond with a
Map-Reply, so I intend to
modify this function to deal
with both interaction, and
supply it through the
lisp_xtr_r structure with a
flag to distinguish the two
behaviours, and the LS
address. The flag will be set
if the signal drop has been
detected, and cleared if the
interface has come back up.
There are two modifications:<br clear="none">
</div>
<ul style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;margin-top:14pt;margin-bottom:14pt;" id="yiv4239732311yui_3_16_0_1_1456853527172_2760" class="yiv4239732311"><li class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2762">If
the flag is set,
Map-Reply(LS) will be sent
to PITR instead of
Map-Reply(RLOC).</li><li class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2764">An
additional Map-Reply(flag ?
NULL : RLOC) will be sent to
LS.</li></ul>
</div>
</blockquote>
The SMR process not only affects to
the PiTR but also all the entries of
the map cache. <br clear="none">
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1456853527172_2783"><span class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2766" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">For
the first change, can
someone explain how the RLOC
currently gets set in the
new message? Is it
uc->la, for example? Or
do I need to build a new
mapping_t?</span><br clear="none" class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2768" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">
</div>
</div>
</blockquote>
uc is just used to indicate the IPs
and the udp ports to be used to send
the packet. You will probably have
to generate a mapping with the new
RLOCs you want to use<br clear="none">
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1456853527172_2783"><br clear="none" class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2770" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">
<span class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2772" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">For
the second change, I don't
strictly have to use a
Map-Reply, as my code will
be talking to my LS, but it
would be nice to re-use the
message type. What could I
do to express some sort of
Map-Reply(NULL)? Use
lisp_msg_put_neg_mapping,
perhaps? Or just an
all-zero IP address?</span><br clear="none" class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2774" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">
</div>
</div>
</blockquote>
Yes, using a negative map reply
(locator_count = 0) will be useful.
Other possibilities could be to use
priority 255 in order to indicate to
not use the locators. When you
create the mapping you also add a
locator for the LS and then you
change priority to 255 of the
locators you don't want to be used.<br clear="none">
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1456853527172_2783"><br clear="none" class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2776" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">
<br clear="none" class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2780" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">
<span class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2782" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">It
looks like
send_all_smr_and_reg() sends
SMR, so that will result in
a later invocation of
tr_recv_map_request(). It
is only invoked from
send_all_smr_cb(), which
appears to be invoked by a
timer. Is that timer set as
a result of a new binding,
i.e., so that SMR will be
sent a short moment after
the new binding is
established? IOW, does the
invocation of
send_all_smr_cb() imply that
the lisp_xtr object has
learned of the new binding?
If so, I intend to clear the
flag inside
send_all_smr_cb(), so that
the subsequent (indirect)
invocation of
tr_recv_map_request() will
behave normally to PITR (as
well as send an additional
message to LS). I will also
add a non-static function to
set the flag, and then call
send_all_smr_and_reg(). I
will later arrange to call
this new function when the
signal drop is detected.</span><span><br clear="none">
</span></div>
</div>
</blockquote>
We have a structure for each
interface (iface_locators) which
contain the changes produced in the
interface. When we receive a netlink
message we update this structure and
we program the SMR timer. If we
receive a new netlink message before
the timer expires, we reprogram the
timer again. When timer expires we
call <span class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2782" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">send_all_smr_cb
where</span> we check the
iface_locators structures to decide
if we have to do a SMR or if we had
a flapping situation and we don't
need to initiate the SMR.<br clear="none">
<br clear="none">
I hope with this information you can
proceed with your development.<br clear="none">
<br clear="none">
Best regards<br clear="none">
<br clear="none">
Albert
<div class="yiv4239732311yqt8442221730" id="yiv4239732311yqtfd41410"><br clear="none">
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1456853527172_2783"><span class="yiv4239732311" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;"><br clear="none">
</span></div>
<div dir="ltr" id="yiv4239732311yui_3_16_0_1_1456853527172_2783"><span class="yiv4239732311" id="yiv4239732311yui_3_16_0_1_1456853527172_2967" style="font-family:'Segoe UI', Helvetica, Arial, sans-serif;font-size:medium;">Regards,</span></div>
<div id="yiv4239732311yui_3_16_0_1_1456853527172_2735"> </div>
<div class="yiv4239732311signature" id="yiv4239732311yui_3_16_0_1_1456853527172_2726">
<div id="yiv4239732311yui_3_16_0_1_1456853527172_2725">
<div class="yiv4239732311yui_3_2_0_18_1337194888927129" id="yiv4239732311yui_3_16_0_1_1456853527172_2724" style="font-family:Tahoma;font-size:13px;">
<div id="yiv4239732311yui_3_16_0_1_1456853527172_2723" style="font-family:arial;font-size:13px;">
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1456853527172_2734"><span id="yiv4239732311yui_3_16_0_1_1456853527172_2733" style="color:rgb(79, 129, 189);font-family:Euphemia, sans-serif;font-size:10pt;">Musab Isah</span><br clear="none">
</div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1456853527172_2732"><span id="yiv4239732311yui_3_16_0_1_1456853527172_2731" style="font-size:10.0pt;color:#4F81BD;">Research Student,</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1456853527172_2730"><span id="yiv4239732311yui_3_16_0_1_1456853527172_2729" style="font-size:10.0pt;color:#4F81BD;">School of Computing and
Communications,</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1456853527172_2728"><span id="yiv4239732311yui_3_16_0_1_1456853527172_2727" style="font-size:10.0pt;color:#4F81BD;">D29, InfoLab21</span></div>
<div class="yiv4239732311MsoNormal" id="yiv4239732311yui_3_16_0_1_1456853527172_2722"><span id="yiv4239732311yui_3_16_0_1_1456853527172_2721" style="font-size:10.0pt;color:#4F81BD;">Lancaster University</span></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br clear="none">
<br clear="none">
</div>
</div>
</div>
<br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="none">
<br clear="none">
</div>
</div>
</div>
</div>
</div>
</blockquote></div>
<br clear="none">
</div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div></div></div></div><br><br></div> </div> </div> </div></div></body></html>