<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>Dear all, <br>
</span>
<div><br>
</div>
<div>I am simulating an ad hoc scenario and made one change in "nfd.conf.sample.in" file to set Link Type as ad hoc.
<br>
</div>
<div><br>
</div>
<div>  <b>  mcast_ad_hoc yes ; set to 'yes' to make all UDP multicast faces "ad hoc", default 'no'</b><br>
</div>
<div><br>
</div>
<div>after making this change in the files i executed <b>"./waf configure"</b> and
<b>"./waf"</b> command to reflect the change in the code. However, when i printed the Link Type, it is still point-to-point.
<br>
</div>
<div><br>
</div>
<div>Before posting this issue, i searched mailing list and found that there are some code related solutions recommended by Spyridon, Junxiao and Teng (Teng also recommended configuration file solution). But it seems that code changes are for older version
 of NFD because in previous code there was no check on LINK_TYPE_AD_HOC. However, in current version there is already a check on Link_TYPE as mentioned below.</div>
<div> <br>
</div>
<div><b>1. Check in forwarder class</b><br>
</div>
<div><br>
</div>
<div>for (Face* pendingDownstream : pendingDownstreams) <br>
</div>
<div>{<br>
</div>
<div>      <br>
</div>
<div>   NS_LOG_INFO("pendingDownstream->getLinkType()"<<pendingDownstream->getLinkType());<br>
</div>
<div>      <br>
</div>
<div>   if (pendingDownstream->getId() == inFace.getId() &&<br>
</div>
<div>          <b>pendingDownstream->getLinkType() != ndn::nfd::LINK_TYPE_AD_HOC</b>)
<br>
</div>
<div>   {<br>
</div>
<div>        continue;<br>
</div>
<div>   }<br>
</div>
<div>      // goto outgoing Data pipeline<br>
</div>
<div>      this->onOutgoingData(data, *pendingDownstream);<br>
</div>
<div> }<br>
</div>
<div><br>
</div>
<div><b>2. Check in starategy class (BestRouteStrategy2)</b><br>
</div>
<div>//do not forward back to the same face, unless it is ad hoc</div>
<div>if (<b>outFace.getId() == inFace.getId() && outFace.getLinkType() != ndn::nfd::LINK_TYPE_AD_HOC</b>)<br>
</div>
<div>    return false;<br>
</div>
<div><br>
</div>
<div>So its mean if we just make changes in configuration file, we can simulate the ad hoc scenarios without making any changes in code.<br>
</div>
<div><br>
</div>
<div>Kindly guide me how to reflect above mentioned configuration change. <br>
</div>
<div><br>
</div>
<span>Thank you.</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Regards </span></b></span></div>
<div id="geom_inter_1528795240697_70_17"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</span></b></span></div>
<b style="font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)"></b><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Atif
 Ur Rehman</span></b><span style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"> </span></span><span style="font-style:normal; font-weight:400; font-size:12pt; line-height:21.3px; font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont; color:rgb(0,0,0)"><b><span style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">(Ph.D.
 Student)</span></b></span><br>
<div id="geom_inter_1528795240701_98_20"><span style="font-style:normal; font-weight:400; font-size:small; line-height:21.3px; font-family:Verdana; color:rgb(0,0,0)"><span style="font-family:"Malgun Gothic","맑은 고딕",AppleGothic,sans-serif,serif,EmojiFont"><b> </b></span></span></div>
</div>
</body>
</html>