gem5
v20.0.0.0
|
#include <inet.hh>
Public Member Functions | |
EthAddr () | |
EthAddr (const uint8_t ea[ETH_ADDR_LEN]) | |
EthAddr (const eth_addr &ea) | |
EthAddr (const std::string &addr) | |
const EthAddr & | operator= (const eth_addr &ea) |
const EthAddr & | operator= (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) |
Net::EthAddr::EthAddr | ( | const uint8_t | ea[ETH_ADDR_LEN] | ) |
Definition at line 61 of file inet.cc.
References data, ArmISA::ea, and ArmISA::i.
Net::EthAddr::EthAddr | ( | const eth_addr & | ea | ) |
|
inline |
|
inline |
Definition at line 93 of file inet.hh.
References data, ArmISA::i, and string().
Referenced by multicast(), EtherSwitch::Interface::recvPacket(), and NSGigE::rxFilter().
|
inline |
Definition at line 87 of file inet.hh.
References data.
Referenced by Net::operator==(), Net::EthHdr::payload(), Net::IpHdr::payload(), Net::Ip6Hdr::payload(), Net::TcpHdr::payload(), Net::TcpOpt::payload(), and Net::UdpHdr::payload().
|
inline |
Definition at line 92 of file inet.hh.
References broadcast(), and unicast().
Referenced by EtherSwitch::Interface::recvPacket(), and NSGigE::rxFilter().
|
inline |
Definition at line 105 of file inet.hh.
References data, ArmISA::ea, Net::operator<<(), Net::operator==(), and X86ISA::reg.
const EthAddr & Net::EthAddr::operator= | ( | const eth_addr & | ea | ) |
const EthAddr & Net::EthAddr::operator= | ( | const std::string & | addr | ) |
|
protected |
|
inline |
Definition at line 85 of file inet.hh.
Referenced by Net::EthHdr::payload(), Net::IpHdr::payload(), Net::TcpHdr::payload(), Net::TcpOpt::payload(), Net::UdpHdr::payload(), Net::IpPtr::pstart(), Net::Ip6Ptr::pstart(), Net::TcpPtr::pstart(), and Net::UdpPtr::pstart().
string Net::EthAddr::string | ( | ) | const |
Definition at line 115 of file inet.cc.
Referenced by broadcast(), Net::IpAddress::ip(), Net::IpNetmask::netmask(), and Net::IpWithPort::port().
|
inline |
Definition at line 91 of file inet.hh.
References data.
Referenced by multicast(), and NSGigE::rxFilter().