title: Using AODV in a wired simulation
body: <p>I am trying to use AODV in a wired simulation but I can't make it work, is it possible to link 2 AODVRouters by wire and use the AODV protocol?? or should I use 2 standardhost and modify the AODVrouting.cc??</p>
  
  <p>EDIT:
  I just simulate the AODV simpleRREQ example using standardhosts instead of AODVrouters and using the debug mode it crashes in this piece of code: </p>
  
  <pre><code>void AODVRouting::sendAODVPacket(AODVControlPacket *packet, const L3Address&amp; destAddr, unsigned int timeToLive, double delay)
  {INetworkProtocolControlInfo *networkProtocolControlInfo = addressType-&gt;createNetworkProtocolControlInfo();
  
  networkProtocolControlInfo-&gt;setHopLimit(timeToLive);
  
  networkProtocolControlInfo-&gt;setTransportProtocol(IP_PROT_MANET);
  networkProtocolControlInfo-&gt;setDestinationAddress(destAddr);
  networkProtocolControlInfo-&gt;setSourceAddress(getSelfIPAddress());
  
  // TODO: Implement: support for multiple interfaces
  
  InterfaceEntry *ifEntry = interfaceTable-&gt;getInterfaceByName("AODV");
  networkProtocolControlInfo-&gt;setInterfaceId(ifEntry-&gt;getInterfaceId());
  
  UDPPacket *udpPacket = new UDPPacket(packet-&gt;getName());
  udpPacket-&gt;encapsulate(packet);
  udpPacket-&gt;setSourcePort(aodvUDPPort);
  udpPacket-&gt;setDestinationPort(aodvUDPPort);
  udpPacket-&gt;setControlInfo(dynamic_cast&lt;cObject *&gt;(networkProtocolControlInfo));
  
  if (destAddr.isBroadcast())
      lastBroadcastTime = simTime();
  
  if (delay == 0)
      send(udpPacket, "ipOut");
  else
      sendDelayed(udpPacket, delay, "ipOut");
  }
  </code></pre>
  
  <p>How can I send the AODV packet throw all the ethernet ports of the router?</p>