gem5  v20.0.0.3
Classes | Functions | Variables
Net Namespace Reference

Classes

struct  EthAddr
 
struct  EthHdr
 
class  EthPtr
 
struct  ip6_opt_dstopts
 
struct  ip6_opt_fragment
 
struct  ip6_opt_hdr
 
struct  ip6_opt_routing_type2
 
struct  Ip6Hdr
 
struct  Ip6Opt
 
class  Ip6Ptr
 
struct  IpAddress
 
struct  IpHdr
 
struct  IpNetmask
 
struct  IpOpt
 
class  IpPtr
 
struct  IpWithPort
 
struct  TcpHdr
 
struct  TcpOpt
 
class  TcpPtr
 
struct  UdpHdr
 
class  UdpPtr
 

Functions

bool operator== (const EthAddr &left, const EthAddr &right)
 
ostream & operator<< (ostream &stream, const EthAddr &ea)
 
bool operator== (const IpAddress &left, const IpAddress &right)
 
ostream & operator<< (ostream &stream, const IpAddress &ia)
 
bool operator== (const IpNetmask &left, const IpNetmask &right)
 
ostream & operator<< (ostream &stream, const IpNetmask &in)
 
bool operator== (const IpWithPort &left, const IpWithPort &right)
 
ostream & operator<< (ostream &stream, const IpWithPort &iwp)
 
uint16_t cksum (const IpPtr &ptr)
 
uint16_t __tu_cksum (const IpPtr &ip)
 
uint16_t __tu_cksum6 (const Ip6Ptr &ip6)
 
uint16_t cksum (const TcpPtr &tcp)
 
uint16_t cksum (const UdpPtr &udp)
 
int hsplit (const EthPacketPtr &ptr)
 
std::ostream & operator<< (std::ostream &stream, const EthAddr &ea)
 
std::ostream & operator<< (std::ostream &stream, const IpAddress &ia)
 
std::ostream & operator<< (std::ostream &stream, const IpNetmask &in)
 
std::ostream & operator<< (std::ostream &stream, const IpWithPort &iwp)
 
struct Net::ip6_opt_dstopts __attribute__ ((packed))
 

Variables

Net::Ip6Opt __attribute__
 

Function Documentation

◆ __attribute__()

struct Net::ip6_opt_dstopts Net::__attribute__ ( (packed)  )

◆ __tu_cksum()

uint16_t Net::__tu_cksum ( const IpPtr ip)

Definition at line 211 of file inet.cc.

References Net::IpHdr::hlen(), Net::IpHdr::len(), Net::IpHdr::payload(), and RiscvISA::sum.

Referenced by cksum(), and Net::UdpPtr::pstart().

◆ __tu_cksum6()

uint16_t Net::__tu_cksum6 ( const Ip6Ptr ip6)

◆ cksum() [1/3]

uint16_t Net::cksum ( const IpPtr ptr)

◆ cksum() [2/3]

uint16_t Net::cksum ( const TcpPtr tcp)

Definition at line 231 of file inet.cc.

References __tu_cksum(), __tu_cksum6(), Net::TcpPtr::packet(), and panic.

◆ cksum() [3/3]

uint16_t Net::cksum ( const UdpPtr udp)

Definition at line 245 of file inet.cc.

References __tu_cksum(), __tu_cksum6(), Net::UdpPtr::packet(), and panic.

◆ hsplit()

int Net::hsplit ( const EthPacketPtr ptr)

◆ operator<<() [1/8]

std::ostream& Net::operator<< ( std::ostream &  stream,
const EthAddr ea 
)

◆ operator<<() [2/8]

ostream& Net::operator<< ( ostream &  stream,
const EthAddr ea 
)

◆ operator<<() [3/8]

ostream& Net::operator<< ( ostream &  stream,
const IpAddress ia 
)

Definition at line 151 of file inet.cc.

References ccprintf(), Net::IpAddress::ip(), and iGbReg::TxdOp::ip().

◆ operator<<() [4/8]

ostream& Net::operator<< ( ostream &  stream,
const IpNetmask in 
)

Definition at line 176 of file inet.cc.

References ccprintf().

◆ operator<<() [5/8]

ostream& Net::operator<< ( ostream &  stream,
const IpWithPort iwp 
)

Definition at line 197 of file inet.cc.

References ccprintf().

◆ operator<<() [6/8]

std::ostream& Net::operator<< ( std::ostream &  stream,
const IpAddress ia 
)

◆ operator<<() [7/8]

std::ostream& Net::operator<< ( std::ostream &  stream,
const IpNetmask in 
)

◆ operator<<() [8/8]

std::ostream& Net::operator<< ( std::ostream &  stream,
const IpWithPort iwp 
)

◆ operator==() [1/4]

bool Net::operator== ( const EthAddr left,
const EthAddr right 
)

◆ operator==() [2/4]

bool Net::operator== ( const IpAddress left,
const IpAddress right 
)

Definition at line 145 of file inet.cc.

References Net::IpAddress::ip().

◆ operator==() [3/4]

bool Net::operator== ( const IpNetmask left,
const IpNetmask right 
)

Definition at line 169 of file inet.cc.

References Net::IpAddress::ip(), and Net::IpNetmask::netmask().

◆ operator==() [4/4]

bool Net::operator== ( const IpWithPort left,
const IpWithPort right 
)

Definition at line 191 of file inet.cc.

References Net::IpAddress::ip(), and Net::IpWithPort::port().

Variable Documentation

◆ __attribute__

struct Net::ip6_opt_hdr Net::__attribute__

Generated on Fri Jul 3 2020 15:53:51 for gem5 by doxygen 1.8.13