<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear all,<br>
<br>
I am trying to add more faces to an already existing NetDevice (Wifi and ndnSIM 2.0) during simulation time in order to simulate some kind of multipath. I could add them during set up within the ndn-stack-helper. But I would like to add them dynamically while
 receiving data packages within the forwarder class.<br>
<br>
Now, I saw the face-manager class and the face-table class but I cannot make it work, as far as I understand I can add a face through<br>
<br>
a) face-manager <br>
<br>
b) l3-protocol-stack<br>
<br>
For both I need to create a Face (NetDeviceFace) first and then add it to the face-table or the l3-protocol-stack....<br>
<br>
      // TODO: try to add a new face here<br>
      // Problem... you first have to choose a NetDevice to add the face to !!!<br>
      // let's assume for starters that you only have one NetDevice.<br>
      ns3::Ptr<ns3::NetDevice> netDevice = node->GetDevice(0);<br>
      ns3::Ptr<ns3::ndn::L3Protocol> l3 = node->GetObject<ns3::ndn::L3Protocol>();<br>
      ns3::Ptr<ns3::ndn::NetDeviceFace> p_netDeviceFace = ns3::ndn::NetDeviceFace(node, netDevice);<br>
      l3->addFace(p_netDeviceFace);<br>
<br>
Leads to: <br>
<br>
../src/ndnSIM/NFD/daemon/fw/forwarder.cpp:461:86: error: invalid use of incomplete type ‘class ns3::ndn::NetDeviceFace’<br>
    ns3::Ptr<ns3::ndn::NetDeviceFace> p_netD = ns3::ndn::NetDeviceFace(node, netDevice);<br>
<br>
Any help or hint would be greatly appreciated.<br>
</div>
</body>
</html>