src/node/net-device.cc
changeset 3460 99698bc858e8
parent 3446 8491c6c05d22
child 3464 9e7bd353e7e7
--- a/src/node/net-device.cc	Wed Jul 16 14:33:44 2008 +0100
+++ b/src/node/net-device.cc	Wed Jul 16 16:06:50 2008 +0100
@@ -38,4 +38,19 @@
 NetDevice::~NetDevice ()
 {}
 
+bool
+NetDevice::SupportsPromiscuous () const
+{
+  return false;
+}
+
+void
+NetDevice::SetPromiscReceiveCallback (PromiscReceiveCallback cb)
+{
+  // assert that the virtual method was overridden in a subclass if it
+  // claims to support promiscuous mode.
+  NS_ASSERT (!SupportsPromiscuous ());
+}
+
+
 } // namespace ns3