src/devices/csma/csma-net-device.h
changeset 3460 99698bc858e8
parent 3448 0bd851bb1225
child 3476 b834a9204124
equal deleted inserted replaced
3459:a67df503c7bc 3460:99698bc858e8
   285    *
   285    *
   286    * \param cb The callback.
   286    * \param cb The callback.
   287    */
   287    */
   288   virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb);
   288   virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb);
   289 
   289 
       
   290 
       
   291   virtual void SetPromiscReceiveCallback (PromiscReceiveCallback cb);
       
   292   virtual bool SupportsPromiscuous (void) const;
       
   293 
   290 protected:
   294 protected:
   291   /**
   295   /**
   292    * Perform any object release functionality required to break reference 
   296    * Perform any object release functionality required to break reference 
   293    * cycles in reference counted objects held by the device.
   297    * cycles in reference counted objects held by the device.
   294    */
   298    */
   531 
   535 
   532   /**
   536   /**
   533    * The callback used to notify higher layers that a packet has been received.
   537    * The callback used to notify higher layers that a packet has been received.
   534    */
   538    */
   535   NetDevice::ReceiveCallback m_rxCallback;
   539   NetDevice::ReceiveCallback m_rxCallback;
       
   540   /**
       
   541    * The callback used to notify higher layers that a packet has been received in promiscuous mode.
       
   542    */
       
   543   NetDevice::PromiscReceiveCallback m_promiscRxCallback;
   536 
   544 
   537   /**
   545   /**
   538    * The interface index (really net evice index) that has been assigned to 
   546    * The interface index (really net evice index) that has been assigned to 
   539    * this network device.
   547    * this network device.
   540    */
   548    */