equal
deleted
inserted
replaced
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 |