gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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

 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)
 
int size () const
 
const uint8_t * bytes () const
 
uint8_t * bytes ()
 
const uint8_t * addr () const
 
bool unicast () const
 
bool multicast () const
 
bool broadcast () const
 
std::string string () const
 
 operator uint64_t () const
 

Protected Member Functions

void parse (const std::string &addr)
 

Detailed Description

Definition at line 77 of file inet.hh.

Constructor & Destructor Documentation

Net::EthAddr::EthAddr ( )

Definition at line 59 of file inet.cc.

References data.

Net::EthAddr::EthAddr ( const uint8_t  ea[ETH_ADDR_LEN])

Definition at line 64 of file inet.cc.

References data, ArmISA::ea, and ArmISA::i.

Net::EthAddr::EthAddr ( const eth_addr &  ea)

Definition at line 70 of file inet.cc.

References data, and ArmISA::i.

Net::EthAddr::EthAddr ( const std::string &  addr)

Definition at line 76 of file inet.cc.

Member Function Documentation

const uint8_t* Net::EthAddr::addr ( ) const
inline

Definition at line 95 of file inet.hh.

References data.

Referenced by Net::operator<<().

bool Net::EthAddr::broadcast ( ) const
inline

Definition at line 98 of file inet.hh.

References data, and ArmISA::i.

Referenced by multicast(), EtherSwitch::Interface::recvPacket(), NSGigE::rxFilter(), and NSGigE::rxKick().

const uint8_t* Net::EthAddr::bytes ( ) const
inline

Definition at line 92 of file inet.hh.

References data.

Referenced by Net::operator==().

uint8_t* Net::EthAddr::bytes ( )
inline

Definition at line 93 of file inet.hh.

References data.

bool Net::EthAddr::multicast ( ) const
inline

Definition at line 97 of file inet.hh.

References broadcast(), and unicast().

Referenced by EtherSwitch::Interface::recvPacket(), NSGigE::rxFilter(), and NSGigE::rxKick().

Net::EthAddr::operator uint64_t ( ) const
inline

Definition at line 110 of file inet.hh.

References data, and X86ISA::reg.

const EthAddr & Net::EthAddr::operator= ( const eth_addr &  ea)

Definition at line 82 of file inet.cc.

References data.

const EthAddr & Net::EthAddr::operator= ( const std::string &  addr)

Definition at line 89 of file inet.cc.

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

Definition at line 96 of file inet.cc.

References data, and ArmISA::i.

int Net::EthAddr::size ( ) const
inline

Definition at line 90 of file inet.hh.

string Net::EthAddr::string ( ) const

Definition at line 118 of file inet.cc.

bool Net::EthAddr::unicast ( ) const
inline

Definition at line 96 of file inet.hh.

References data.

Referenced by multicast(), NSGigE::rxFilter(), and NSGigE::rxKick().


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

Generated on Fri Jun 9 2017 13:04:34 for gem5 by doxygen 1.8.6