64d63
< #include "dev/net/etherobject.hh"
112,113c111,112
< EtherInt*
< DistEtherLink::getEthPort(const std::string &if_name, int idx)
---
> Port &
> DistEtherLink::getPort(const std::string &if_name, PortID idx)
115,120c114,116
< if (if_name != "int0") {
< return nullptr;
< } else {
< panic_if(localIface->getPeer(), "interface already connected to");
< }
< return localIface;
---
> if (if_name == "int0")
> return *localIface;
> return SimObject::getPort(if_name, idx);