Try to preserve API compatibility, after SendFrom / promiscuous mode changes.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-07-04 19:15:00 +01:00
1 parent bf13c98467
commit fd8f87cd26
5 files changed
+43 -3

No files matched your search

+21
View File
@@ -21,6 +21,7 @@
#include "ns3/object.h"
#include "ns3/log.h"
#include "net-device.h"
#include "ns3/packet.h"
NS_LOG_COMPONENT_DEFINE ("NetDevice");
@@ -38,4 +39,24 @@ TypeId NetDevice::GetTypeId (void)
NetDevice::~NetDevice ()
{}
bool
NetDevice::SupportsPromiscuousReceiveCallback (void) const
{
return false;
}
void
NetDevice::SetPromiscuousReceiveCallback (PromiscuousReceiveCallback cb)
{
NS_FATAL_ERROR ("promiscuous receive callback not supported for this device");
}
bool
NetDevice::SendFrom(Ptr<Packet> packet, const Address& source, const Address& dest, uint16_t protocolNumber)
{
NS_FATAL_ERROR ("NetDevice " << GetInstanceTypeId ().GetName () << " does not support SendFrom.");
return false;
}
} // namespace ns3