diff options
Diffstat (limited to 'src/dev/net/etherswitch.hh')
-rw-r--r-- | src/dev/net/etherswitch.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/net/etherswitch.hh b/src/dev/net/etherswitch.hh index 36a0c686a..9b60b8507 100644 --- a/src/dev/net/etherswitch.hh +++ b/src/dev/net/etherswitch.hh @@ -42,14 +42,13 @@ #include "base/inet.hh" #include "dev/net/etherint.hh" #include "dev/net/etherlink.hh" -#include "dev/net/etherobject.hh" #include "dev/net/etherpkt.hh" #include "dev/net/pktfifo.hh" #include "params/EtherSwitch.hh" #include "sim/eventq.hh" #include "sim/sim_object.hh" -class EtherSwitch : public SimObject, public EtherObject +class EtherSwitch : public SimObject { public: typedef EtherSwitchParams Params; @@ -62,7 +61,8 @@ class EtherSwitch : public SimObject, public EtherObject return dynamic_cast<const Params*>(_params); } - EtherInt *getEthPort(const std::string &if_name, int idx) override; + Port &getPort(const std::string &if_name, + PortID idx=InvalidPortID) override; protected: /** |