src/devices/csma/csma-net-device.h
changeset 3460 99698bc858e8
parent 3448 0bd851bb1225
child 3476 b834a9204124
--- a/src/devices/csma/csma-net-device.h	Wed Jul 16 14:33:44 2008 +0100
+++ b/src/devices/csma/csma-net-device.h	Wed Jul 16 16:06:50 2008 +0100
@@ -287,6 +287,10 @@
    */
   virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb);
 
+
+  virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb);
+  virtual bool SupportsPromiscuous (void) const;
+
 protected:
   /**
    * Perform any object release functionality required to break reference 
@@ -533,6 +537,10 @@
    * The callback used to notify higher layers that a packet has been received.
    */
   NetDevice::ReceiveCallback m_rxCallback;
+  /**
+   * The callback used to notify higher layers that a packet has been received in promiscuous mode.
+   */
+  NetDevice::PromiscReceiveCallback m_promiscRxCallback;
 
   /**
    * The interface index (really net evice index) that has been assigned to