Changes in the promiscuous mode API: now the callback receives everything, both 'for me' and 'not for me', with an additional 'forMe' parameter.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-07-04 15:37:03 +01:00
1 parent 45334ff8de
commit 629a5b02da
3 files changed
+13 -11

No files matched your search

+2 -2
View File
@@ -158,7 +158,7 @@ public:
* A promiscuous protocol handler
*/
typedef Callback<void,Ptr<NetDevice>, Ptr<Packet>,uint16_t,
const Address &, const Address &> PromiscuousProtocolHandler;
const Address &, const Address &, bool> PromiscuousProtocolHandler;
/**
* \param handler the handler to register
* \param protocolType the type of protocol this handler is
@@ -202,7 +202,7 @@ private:
bool ReceiveFromDevice (Ptr<NetDevice> device, Ptr<Packet>,
uint16_t protocol, const Address &from);
bool PromiscuousReceiveFromDevice (Ptr<NetDevice> device, Ptr<Packet>,
uint16_t protocol, const Address &from, const Address &to);
uint16_t protocol, const Address &from, const Address &to, bool forMe);
void Construct (void);
struct ProtocolHandlerEntry {