Go to the documentation of this file.
33 #ifndef __DEV_NET_ETHERTAP_HH__
34 #define __DEV_NET_ETHERTAP_HH__
40 #include "config/use_tuntap.hh"
45 #include "params/EtherTap.hh"
49 #include "params/EtherTapStub.hh"
89 virtual void recvReal(
int revent) = 0;
174 typedef EtherTapParams
Params;
175 EtherTap(
const Params *
p);
181 return dynamic_cast<const Params *
>(
_params);
194 #endif // __DEV_NET_ETHERTAP_HH__
void recvReal(int revent) override
virtual bool sendReal(const void *data, size_t len)=0
const Params * params() const
const PortID InvalidPortID
EtherTapStub(const Params *p)
void sendSimulated(void *data, size_t len)
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
virtual void recvReal(int revent)=0
void unserialize(CheckpointIn &cp) override
Unserialize an object.
bool recvPacket(EthPacketPtr pkt) override
EtherTapStubParams Params
Ports are used to interface objects to each other.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port with a given name and index.
EtherTapBase(const Params *p)
std::shared_ptr< EthPacketData > EthPacketPtr
const std::string & name() const
Return port name (for DPRINTF).
const SimObjectParams * _params
Cached copy of the object parameters.
const Params * params() const
EtherTapBaseParams Params
std::ostream CheckpointOut
EventFunctionWrapper txEvent
std::queue< EthPacketPtr > packetBuffer
bool recvSimulated(EthPacketPtr packet)
void serialize(CheckpointOut &cp) const override
Serialize an object.
EtherTapInt(const std::string &name, EtherTapBase *t)
bool sendReal(const void *data, size_t len) override
Abstract superclass for simulation objects.
Generated on Wed Sep 30 2020 14:02:11 for gem5 by doxygen 1.8.17