summaryrefslogtreecommitdiff
path: root/src/dev/net/etherbus.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/net/etherbus.hh')
-rw-r--r--src/dev/net/etherbus.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dev/net/etherbus.hh b/src/dev/net/etherbus.hh
index 1b264533c..8c1260fc5 100644
--- a/src/dev/net/etherbus.hh
+++ b/src/dev/net/etherbus.hh
@@ -43,7 +43,7 @@
class EtherDump;
class EtherInt;
-class EtherBus : public EtherObject
+class EtherBus : public SimObject, public EtherObject
{
protected:
typedef std::list<EtherInt *> devlist_t;
@@ -72,7 +72,7 @@ class EtherBus : public EtherObject
void reg(EtherInt *dev);
bool busy() const { return (bool)packet; }
bool send(EtherInt *sender, EthPacketPtr &packet);
- virtual EtherInt *getEthPort(const std::string &if_name, int idx);
+ EtherInt *getEthPort(const std::string &if_name, int idx) override;
};
#endif // __DEV_NET_ETHERBUS_HH__