merge with trunk
--HG-- rename : src/devices/csma-cd/csma-cd-net-device.cc => src/devices/csma/csma-net-device.cc rename : src/devices/csma-cd/csma-cd-net-device.h => src/devices/csma/csma-net-device.h
This commit is contained in:
commit
bcf1aa1f33
62 files changed
+2256
-2036
No files matched your search
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
#include "ns3/net-device.h"
|
||||
#include "ns3/node.h"
|
||||
#include "ns3/eui48-address.h"
|
||||
#include "ipv4-loopback-interface.h"
|
||||
#include "ipv4-l3-protocol.h"
|
||||
|
||||
@@ -36,7 +37,7 @@ void
|
||||
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
|
||||
{
|
||||
Ptr<Ipv4L3Protocol> ipv4 = m_node->QueryInterface<Ipv4L3Protocol> (Ipv4L3Protocol::iid);
|
||||
ipv4->Receive (GetDevice (), packet, Ipv4L3Protocol::PROT_NUMBER, GetDevice ()->GetAddress ());
|
||||
ipv4->Receive (GetDevice (), packet, Ipv4L3Protocol::PROT_NUMBER, Eui48Address ("ff:ff:ff:ff:ff:ff"));
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
Reference in new issue
Block a user