Go to the documentation of this file.
33 #ifndef __DEV_NET_ETHERTAP_HH__
34 #define __DEV_NET_ETHERTAP_HH__
40 #include "config/have_tuntap.hh"
45 #include "params/EtherTap.hh"
49 #include "params/EtherTapStub.hh"
86 virtual void recvReal(
int revent) = 0;
165 using Params = EtherTapParams;
166 EtherTap(
const Params &
p);
173 void recvReal(
int revent)
override;
174 bool sendReal(
const void *
data,
size_t len)
override;
180 #endif // __DEV_NET_ETHERTAP_HH__
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
bool sendReal(const void *data, size_t len) override
EtherTapBase(const Params &p)
std::queue< EthPacketPtr > packetBuffer
const std::string & name() const
Return port name (for DPRINTF).
void sendSimulated(void *data, size_t len)
const PortID InvalidPortID
bool recvPacket(EthPacketPtr pkt) override
EtherTapStub(const Params &p)
EventFunctionWrapper txEvent
std::shared_ptr< EthPacketData > EthPacketPtr
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Abstract superclass for simulation objects.
void recvReal(int revent) override
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Ports are used to interface objects to each other.
void serialize(CheckpointOut &cp) const override
Serialize an object.
virtual void recvReal(int revent)=0
std::ostream CheckpointOut
EtherTapInt(const std::string &name, EtherTapBase *t)
void serialize(CheckpointOut &cp) const override
Serialize an object.
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
bool recvSimulated(EthPacketPtr packet)
virtual bool sendReal(const void *data, size_t len)=0
EtherTapBaseParams Params
Generated on Wed Jul 28 2021 12:10:26 for gem5 by doxygen 1.8.17