gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
inet.cc File Reference
#include "base/inet.hh"
#include <cstddef>
#include <cstdio>
#include <sstream>
#include <string>
#include "base/cprintf.hh"
#include "base/types.hh"

Go to the source code of this file.

Namespaces

 Net
 

Macros

#define IP6_EXTENSION(nxt)
 

Functions

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

Macro Definition Documentation

#define IP6_EXTENSION (   nxt)
Value:
(nxt == IP_PROTO_HOPOPTS) ? true : \
(nxt == IP_PROTO_ROUTING) ? true : \
(nxt == IP_PROTO_FRAGMENT) ? true : \
(nxt == IP_PROTO_AH) ? true : \
(nxt == IP_PROTO_ESP) ? true: \
(nxt == IP_PROTO_DSTOPTS) ? true : false

Definition at line 281 of file inet.cc.

Referenced by Net::Ip6Hdr::extensionLength(), Net::Ip6Hdr::getExt(), and Net::Ip6Hdr::proto().


Generated on Fri Jun 9 2017 13:03:56 for gem5 by doxygen 1.8.6