<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 style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">Hello
<span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">
Bouchrit</span>,</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">I
 think you are looking for the following code. </span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">
<div><br>
</div>
<div>// Following includes are mandatory in order to get node and its faces <br>
</div>
<div><br>
</div>
<div>#include <ns3/node-list.h><br>
</div>
<div>#include <ns3/node.h><br>
</div>
<div>#include "../../../model/ndn-l3-protocol.hpp"</div>
<div><br>
</div>
<div><br>
</div>
<div> // Code </div>
<div>if (ns3::Simulator::GetContext() < 1000) // this check prevents 4535459 value of Context, I am not sure why it returns 4535459<br>
</div>
<div>{ <br>
</div>
<div>    ns3::Ptr<ns3::Node> node = ns3::NodeList::GetNode(ns3::Simulator::GetContext()); // Get Current node from simulator context<br>
</div>
<div>    ns3::Ptr<ns3::ndn::L3Protocol> l3Object = node->GetObject<ns3::ndn::L3Protocol>(); // Getting l3 Object
<br>
</div>
<div><br>
</div>
<div>    std::cout << "Node Id :" << node->GetId() << std::endl; <br>
</div>
<div><br>
</div>
<div>    // iteratation over face table<br>
</div>
<div>    for (auto & face : l3Object->getForwarder()->getFaceTable())<br>
</div>
<div>    {<br>
</div>
<div><br>
</div>
<div>       // here you can play with "face" object (current node face)<br>
</div>
<div><br>
</div>
<div>    }<br>
</div>
<span>}</span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important"><span><br>
</span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important"><span><span style="font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; background-color: rgb(255, 255, 255); display: inline !important">I
 executed the above code in Forwarder class and it was working fine for me. </span></span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(50, 49, 48); font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div></div>
<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"></span></b></span></div>
<p style="margin-right:0in; margin-left:0in; font-size:11pt; font-family:Calibri,sans-serif; margin:0in; margin-bottom:.0001pt; background:white">
<b><span style="color:black; border:1pt none windowtext; padding:0in; font-family:Calibri,Helvetica,sans-serif">Regards </span></b><span style="color:#201F1E"></span></p>
<p style="margin-right:0in; margin-left:0in; font-size:11pt; font-family:Calibri,sans-serif; margin:0in; margin-bottom:.0001pt; background:white">
<span><span style="color:rgb(32,31,30); border:1pt none windowtext; padding:0in; font-family:Calibri,Helvetica,sans-serif"> </span></span><span style="color:#201F1E"></span></p>
<p style="margin-right:0in; margin-left:0in; font-size:11pt; font-family:Calibri,sans-serif; margin:0in; margin-bottom:.0001pt; background:white; text-align:start">
<b><span><span style="color:black; border:1pt none windowtext; padding:0in; font-family:Calibri,Helvetica,sans-serif">Muhammad Atif Ur Rehman</span></span></b><span><span style="color:black; border:1pt none windowtext; padding:0in; font-family:Calibri,Helvetica,sans-serif"> </span><b><span style="font-family:Calibri,Helvetica,sans-serif">(Ph.D.
 Student)</span></b><br>
</span></p>
</div>
</body>
</html>