gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | List of all members
Net::EthAddr Struct Reference

#include <inet.hh>

Inheritance diagram for Net::EthAddr:

Public Member Functions

int size () const
 
std::string string () const
 
 operator uint64_t () const
 
 EthAddr ()
 
 EthAddr (const uint8_t ea[ETH_ADDR_LEN])
 
 EthAddr (const eth_addr &ea)
 
 EthAddr (const std::string &addr)
 
const EthAddroperator= (const eth_addr &ea)
 
const EthAddroperator= (const std::string &addr)
 
const uint8_t * bytes () const
 
uint8_t * bytes ()
 
const uint8_t * addr () const
 
bool unicast () const
 
bool multicast () const
 
bool broadcast () const
 

Protected Member Functions

void parse (const std::string &addr)
 

Detailed Description

Definition at line 72 of file inet.hh.

Member Function Documentation

◆ parse()

void Net::EthAddr::parse ( const std::string &  addr)
protected

Definition at line 92 of file inet.cc.

References addr(), bytes(), data, and ArmISA::i.

Referenced by EthAddr(), and operator=().


The documentation for this struct was generated from the following files:

Generated on Tue Mar 23 2021 19:42:02 for gem5 by doxygen 1.8.17