34 #ifndef ETHERNETTRANSPORT_HEADER_ 35 #define ETHERNETTRANSPORT_HEADER_ 67 virtual int verifyFrame(
const void * buf,
size_t len);
101 using EthAddrMap = std::map<Utils::EtherAddr, EMANE::NEMId, ltmacaddr>;
103 EthAddrMap macCache_;
109 #endif //ETHERNETTRANSPORT_HEADER_
Base class for all transports.
EMANE Ethernet Transport.
virtual int parseFrame(const Utils::EtherHeader *pEthHeader, EMANE::NEMId &dst, std::uint8_t &dscp)
Definition of the ethernet frame address as an array of 6 bytes or set of 3 words.
EMANE::NEMId lookupArpCache(const Utils::EtherAddr *pEthAddr)
void addEntry(const Utils::EtherAddr &addr, EMANE::NEMId nemId)
const std::uint16_t ETH_ALEN
Ethernet hardware address length.
virtual int verifyFrame(const void *buf, size_t len)
EthernetTransport(EMANE::NEMId id, EMANE::PlatformServiceProvider *pPlatformService)
void updateArpCache(const Utils::EtherHeader *pEthHeader, EMANE::NEMId nemId)