From cdee56670eb976d130c31b4c953fbd5c556ecbb7 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 2 May 2007 09:17:42 +0200 Subject: [PATCH] derive from Object for proper refcounting --- src/node/net-device.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node/net-device.h b/src/node/net-device.h index a846da21d..a8000526a 100644 --- a/src/node/net-device.h +++ b/src/node/net-device.h @@ -25,6 +25,7 @@ #include #include "ns3/callback.h" #include "ns3/packet.h" +#include "ns3/object.h" #include "mac-address.h" namespace ns3 { @@ -53,8 +54,9 @@ class Channel; * this base class and implement your own version of the * NetDevice::SendTo method. */ -class NetDevice { - public: +class NetDevice : public Object +{ +public: /** * \param node base class node pointer of device's node * \param addr MAC address of this device.