Fix ErrorChannel Send
authorTommaso Pecorella <tommaso.pecorella@unifi.it>
Tue, 03 Dec 2013 22:49:51 +0100
changeset 10463 5128112a9ee6
parent 10462 c10d2ac3e3d8
child 10464 5838c1094f43
Fix ErrorChannel Send
src/internet/test/error-channel.h
src/network/utils/simple-channel.h
--- a/src/internet/test/error-channel.h	Tue Dec 03 13:46:53 2013 -0800
+++ b/src/internet/test/error-channel.h	Tue Dec 03 22:49:51 2013 +0100
@@ -41,8 +41,8 @@
   static TypeId GetTypeId (void);
   ErrorChannel ();
 
-  void Send (Ptr<Packet> p, uint16_t protocol, Mac48Address to, Mac48Address from,
-	     Ptr<SimpleNetDevice> sender);
+  virtual void Send (Ptr<Packet> p, uint16_t protocol, Mac48Address to, Mac48Address from,
+                     Ptr<SimpleNetDevice> sender);
 
   void Add (Ptr<SimpleNetDevice> device);
 
--- a/src/network/utils/simple-channel.h	Tue Dec 03 13:46:53 2013 -0800
+++ b/src/network/utils/simple-channel.h	Tue Dec 03 22:49:51 2013 +0100
@@ -51,8 +51,8 @@
    * \param sender netdevice who sent the packet
    *
    */
-  void Send (Ptr<Packet> p, uint16_t protocol, Mac48Address to, Mac48Address from,
-             Ptr<SimpleNetDevice> sender);
+  virtual void Send (Ptr<Packet> p, uint16_t protocol, Mac48Address to, Mac48Address from,
+                     Ptr<SimpleNetDevice> sender);
 
   /**
    * Attached a net device to the channel.