Simplify promiscuous mode API: NetDevices always operate in promiscuous mode, normal receive callbacks receive extra destination address and packet type.
This commit is contained in:
1 parent
8f38c8907b
commit
e525ff58ab
20 files changed
+115
-222
No files matched your search
@@ -73,7 +73,10 @@ Ipv4LoopbackInterface::SendTo (Ptr<Packet> packet, Ipv4Address dest)
|
||||
m_node->GetObject<Ipv4L3Protocol> ();
|
||||
|
||||
ipv4->Receive (0, packet, Ipv4L3Protocol::PROT_NUMBER,
|
||||
Mac48Address ("ff:ff:ff:ff:ff:ff"));
|
||||
Mac48Address ("ff:ff:ff:ff:ff:ff"),
|
||||
Mac48Address ("ff:ff:ff:ff:ff:ff"),
|
||||
NetDevice::PACKET_HOST // note: linux uses PACKET_LOOPBACK here
|
||||
);
|
||||
}
|
||||
|
||||
}//namespace ns3
|
||||
Reference in new issue
Block a user