src/devices/bridge/bridge-net-device.h
changeset 3460 99698bc858e8
parent 3449 c3dcecc4825a
child 3548 e5ab96db540e
child 3554 6d041a5be1db
equal deleted inserted replaced
3459:a67df503c7bc 3460:99698bc858e8
    64   virtual bool SendFrom (Ptr<Packet> packet, const Address& source, const Address& dest, uint16_t protocolNumber);
    64   virtual bool SendFrom (Ptr<Packet> packet, const Address& source, const Address& dest, uint16_t protocolNumber);
    65   virtual Ptr<Node> GetNode (void) const;
    65   virtual Ptr<Node> GetNode (void) const;
    66   virtual void SetNode (Ptr<Node> node);
    66   virtual void SetNode (Ptr<Node> node);
    67   virtual bool NeedsArp (void) const;
    67   virtual bool NeedsArp (void) const;
    68   virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb);
    68   virtual void SetReceiveCallback (NetDevice::ReceiveCallback cb);
       
    69   virtual void SetPromiscReceiveCallback (NetDevice::PromiscReceiveCallback cb);
       
    70   virtual bool SupportsPromiscuous () const;
    69 
    71 
    70 protected:
    72 protected:
    71   virtual void DoDispose (void);
    73   virtual void DoDispose (void);
    72 
    74 
    73   void ReceiveFromDevice (Ptr<NetDevice> device, Ptr<Packet> packet, uint16_t protocol,
    75   void ReceiveFromDevice (Ptr<NetDevice> device, Ptr<Packet> packet, uint16_t protocol,
    79   void Learn (Mac48Address source, Ptr<NetDevice> port);
    81   void Learn (Mac48Address source, Ptr<NetDevice> port);
    80   Ptr<NetDevice> GetLearnedState (Mac48Address source);
    82   Ptr<NetDevice> GetLearnedState (Mac48Address source);
    81 
    83 
    82 private:
    84 private:
    83   NetDevice::ReceiveCallback m_rxCallback;
    85   NetDevice::ReceiveCallback m_rxCallback;
       
    86   NetDevice::PromiscReceiveCallback m_promiscRxCallback;
    84 
    87 
    85   Mac48Address m_address;
    88   Mac48Address m_address;
    86   Time m_expirationTime; // time it takes for learned MAC state to expire
    89   Time m_expirationTime; // time it takes for learned MAC state to expire
    87   struct LearnedState
    90   struct LearnedState
    88   {
    91   {