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:
Gustavo J. A. M. Carneiro committed 2008-07-07 12:18:05 +01:00
1 parent 8f38c8907b
commit e525ff58ab
20 files changed
+115 -222

No files matched your search

+3 -1
View File
@@ -27,6 +27,7 @@
#include "ns3/traced-callback.h"
#include "ns3/ptr.h"
#include "ns3/socket.h"
#include "ns3/net-device.h"
namespace ns3 {
@@ -103,7 +104,8 @@ public:
private:
void ForwardUp (Ptr<NetDevice> device, Ptr<Packet> packet,
uint16_t protocol, const Address &from);
uint16_t protocol, const Address &from, const Address &to,
NetDevice::PacketType packetType);
int DoBind (const PacketSocketAddress &address);
uint32_t GetMinMtu (PacketSocketAddress ad) const;
virtual void DoDispose (void);