src/network/model/node.h
changeset 7182 5ecfee5d17de
parent 7149 87514e0d866b
child 7352 e440347eff27
equal deleted inserted replaced
7181:7ff8011cf487 7182:5ecfee5d17de
   143    *                 addresses, the address reported here is the value of 
   143    *                 addresses, the address reported here is the value of 
   144    *                 device->GetAddress().
   144    *                 device->GetAddress().
   145    * \param packetType type of packet received
   145    * \param packetType type of packet received
   146    *                   (broadcast/multicast/unicast/otherhost); Note:
   146    *                   (broadcast/multicast/unicast/otherhost); Note:
   147    *                   this value is only valid for promiscuous mode
   147    *                   this value is only valid for promiscuous mode
   148    *                   protocol handlers.  
   148    *                   protocol handlers.
   149    */
   149    */
   150   typedef Callback<void,Ptr<NetDevice>, Ptr<const Packet>,uint16_t,const Address &,
   150   typedef Callback<void,Ptr<NetDevice>, Ptr<const Packet>,uint16_t,const Address &,
   151                    const Address &, NetDevice::PacketType> ProtocolHandler;
   151                    const Address &, NetDevice::PacketType> ProtocolHandler;
   152   /**
   152   /**
   153    * \param handler the handler to register
   153    * \param handler the handler to register
   172    * After this call returns, the input handler will never
   172    * After this call returns, the input handler will never
   173    * be invoked anymore.
   173    * be invoked anymore.
   174    */
   174    */
   175   void UnregisterProtocolHandler (ProtocolHandler handler);
   175   void UnregisterProtocolHandler (ProtocolHandler handler);
   176 
   176 
   177   
   177 
   178   /**
   178   /**
   179    * \returns true if checksums are enabled, false otherwise.
   179    * \returns true if checksums are enabled, false otherwise.
   180    */
   180    */
   181   static bool ChecksumEnabled (void);
   181   static bool ChecksumEnabled (void);
   182 
   182