equal
deleted
inserted
replaced
249 */ |
249 */ |
250 virtual bool Send (Ptr<Packet> packet, const Address& dest, |
250 virtual bool Send (Ptr<Packet> packet, const Address& dest, |
251 uint16_t protocolNumber); |
251 uint16_t protocolNumber); |
252 |
252 |
253 /** |
253 /** |
|
254 * Start sending a packet down the channel, with MAC spoofing |
|
255 */ |
|
256 virtual bool SendFrom (Ptr<Packet> packet, const Address& source, const Address& dest, |
|
257 uint16_t protocolNumber); |
|
258 |
|
259 /** |
254 * Get the node to which this device is attached. |
260 * Get the node to which this device is attached. |
255 * |
261 * |
256 * \returns Ptr to the Node to which the device is attached. |
262 * \returns Ptr to the Node to which the device is attached. |
257 */ |
263 */ |
258 virtual Ptr<Node> GetNode (void) const; |
264 virtual Ptr<Node> GetNode (void) const; |
305 * \param p Packet to which header should be added |
311 * \param p Packet to which header should be added |
306 * \param dest MAC destination address to which packet should be sent |
312 * \param dest MAC destination address to which packet should be sent |
307 * \param protocolNumber In some protocols, identifies the type of |
313 * \param protocolNumber In some protocols, identifies the type of |
308 * payload contained in this packet. |
314 * payload contained in this packet. |
309 */ |
315 */ |
310 void AddHeader (Ptr<Packet> p, Mac48Address dest, uint16_t protocolNumber); |
316 void AddHeader (Ptr<Packet> p, Mac48Address source, Mac48Address dest, uint16_t protocolNumber); |
311 |
317 |
312 /** |
318 /** |
313 * Removes, from a packet of data, all headers and trailers that |
319 * Removes, from a packet of data, all headers and trailers that |
314 * relate to the packet type |
320 * relate to the packet type |
315 * |
321 * |