34#ifndef __DEV_NET_ETHERINT_HH__
35#define __DEV_NET_ETHERINT_HH__
78 virtual bool isBusy() {
return false; }
bool sendPacket(EthPacketPtr packet)
virtual void sendDone()=0
void unbind() override
Dettach from a peer port.
virtual bool recvPacket(EthPacketPtr packet)=0
void setPeer(EtherInt *p)
void bind(Port &peer) override
Attach to a peer port.
const std::string & name() const
Return port name (for DPRINTF).
EtherInt(const std::string &name, int idx=InvalidPortID)
Ports are used to interface objects to each other.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
const PortID InvalidPortID
std::shared_ptr< EthPacketData > EthPacketPtr