X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fdev%2Fnet%2Fethertap.hh;h=5f59a390cda3d64a823134729defc0366c9dec7f;hb=40018b14a608b066a52c4baf86b4160820402c9c;hp=9b4e175e1105aae7c659cd332d4bb94269b3ae49;hpb=ea57eee60cca92277f9f8d1f2abf501ca158be2e;p=gem5.git diff --git a/src/dev/net/ethertap.hh b/src/dev/net/ethertap.hh index 9b4e175e1..5f59a390c 100644 --- a/src/dev/net/ethertap.hh +++ b/src/dev/net/ethertap.hh @@ -41,7 +41,6 @@ #include "base/pollevent.hh" #include "config/use_tuntap.hh" #include "dev/net/etherint.hh" -#include "dev/net/etherobject.hh" #include "dev/net/etherpkt.hh" #if USE_TUNTAP @@ -56,7 +55,7 @@ class TapEvent; class EtherTapInt; -class EtherTapBase : public EtherObject +class EtherTapBase : public SimObject { public: typedef EtherTapBaseParams Params; @@ -101,7 +100,8 @@ class EtherTapBase : public EtherObject EtherTapInt *interface; public: - EtherInt *getEthPort(const std::string &if_name, int idx) override; + Port &getPort(const std::string &if_name, + PortID idx=InvalidPortID) override; bool recvSimulated(EthPacketPtr packet); void sendSimulated(void *data, size_t len);