<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Ashiq,</p>
<p>If you are only using "ad hoc" face in your simulations, there
are two possible ways: </p>
In NFD configuration file, one is able to make all UDP multicast
faces "ad hoc" <br>
(configuration line:
<a class="moz-txt-link-freetext" href="https://github.com/named-data/NFD/blob/master/nfd.conf.sample.in#L138">https://github.com/named-data/NFD/blob/master/nfd.conf.sample.in#L138</a>).
<br>
Thus, if the version of ndnSIM has ndn-cxx and nfd that support "ad
hoc" face, you <br>
can modify the configuration file that NFD is loading. <br>
<br>
An alternative is to directly modify NFD. The difference between "ad
hoc" face and other faces<br>
in the current implementation is whether to allow Interest/Data sent
to its incoming face.<br>
Thus, you can delete the check in the forwarder<br>
(<a class="moz-txt-link-freetext" href="https://github.com/named-data/NFD/blob/master/daemon/fw/forwarder.cpp#L314-L317">https://github.com/named-data/NFD/blob/master/daemon/fw/forwarder.cpp#L314-L317</a>),<br>
and do not check it in your forwarding strategy. Afterwards, face
becomes "ad hoc".<br>
<br>
Teng<br>
<br>
<br>
<div class="moz-cite-prefix">On 3/28/18 3:09 PM, Md Ashiqur Rahman
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAAbJvrGtgmFk9A49KDYDWrU9ZkAJeV+G0qcctU2VvnX1UJ1m5A@mail.gmail.com">
<div dir="ltr">Hello all,
<div><br>
</div>
<div>I am trying to set the LinkType manually in my simulation,
for example:</div>
<div><br>
</div>
<div>LINK_TYPE_POINT_TO_POINT or LINK_TYPE_AD_HOC.</div>
<div><br>
</div>
<div>How and where in the simulation scenario should I do this?</div>
<div><br>
</div>
<div>Regards-</div>
<div>Ashiq</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ndnSIM mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a>
</pre>
</blockquote>
<br>
</body>
</html>