src/node/net-device.cc
changeset 3460 99698bc858e8
parent 3446 8491c6c05d22
child 3464 9e7bd353e7e7
equal deleted inserted replaced
3459:a67df503c7bc 3460:99698bc858e8
    36 }
    36 }
    37 
    37 
    38 NetDevice::~NetDevice ()
    38 NetDevice::~NetDevice ()
    39 {}
    39 {}
    40 
    40 
       
    41 bool
       
    42 NetDevice::SupportsPromiscuous () const
       
    43 {
       
    44   return false;
       
    45 }
       
    46 
       
    47 void
       
    48 NetDevice::SetPromiscReceiveCallback (PromiscReceiveCallback cb)
       
    49 {
       
    50   // assert that the virtual method was overridden in a subclass if it
       
    51   // claims to support promiscuous mode.
       
    52   NS_ASSERT (!SupportsPromiscuous ());
       
    53 }
       
    54 
       
    55 
    41 } // namespace ns3
    56 } // namespace ns3