src/devices/csma/csma-net-device.h
changeset 3442 8eef02250bc9
parent 3438 86e262420fbf
child 3445 ae9f7d5e2d56
--- a/src/devices/csma/csma-net-device.h	Fri Jul 04 17:58:31 2008 +0100
+++ b/src/devices/csma/csma-net-device.h	Fri Jul 04 18:03:26 2008 +0100
@@ -251,6 +251,12 @@
     uint16_t protocolNumber);
 
   /**
+   * Start sending a packet down the channel, with MAC spoofing
+   */
+  virtual bool SendFrom (Ptr<Packet> packet, const Address& source, const Address& dest, 
+                         uint16_t protocolNumber);
+
+  /**
    * Get the node to which this device is attached.
    *
    * \returns Ptr to the Node to which the device is attached.
@@ -307,7 +313,7 @@
    * \param protocolNumber In some protocols, identifies the type of
    * payload contained in this packet.
    */
-  void AddHeader (Ptr<Packet> p, Mac48Address dest, uint16_t protocolNumber);
+  void AddHeader (Ptr<Packet> p, Mac48Address source, Mac48Address dest, uint16_t protocolNumber);
 
   /**
    * Removes, from a packet of data, all headers and trailers that