NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::util::ethernet Namespace Reference

Classes

class  Address
 represents an Ethernet hardware address More...
 

Functions

Address getBroadcastAddress ()
 Returns the Ethernet broadcast address (ff:ff:ff:ff:ff:ff) More...
 
Address getDefaultMulticastAddress ()
 Returns the default Ethernet multicast address for NDN. More...
 
std::ostream & operator<< (std::ostream &o, const Address &a)
 

Variables

const uint16_t ETHERTYPE_NDN = 0x8624
 
const size_t ADDR_LEN = 6
 Octets in one Ethernet address. More...
 
const size_t TYPE_LEN = 2
 Octets in Ethertype field. More...
 
const size_t HDR_LEN = 14
 Total octets in Ethernet header (without 802.1Q tag) More...
 
const size_t TAG_LEN = 4
 Octets in 802.1Q tag (TPID + priority + VLAN) More...
 
const size_t MIN_DATA_LEN = 46
 Min octets in Ethernet payload (assuming no 802.1Q tag) More...
 
const size_t MAX_DATA_LEN = 1500
 Max octets in Ethernet payload. More...
 
const size_t CRC_LEN = 4
 Octets in Ethernet frame check sequence. More...
 

Function Documentation

Address ndn::util::ethernet::getBroadcastAddress ( )

Returns the Ethernet broadcast address (ff:ff:ff:ff:ff:ff)

Definition at line 118 of file ethernet.cpp.

Referenced by ndn::util::ethernet::Address::isBroadcast().

Address ndn::util::ethernet::getDefaultMulticastAddress ( )

Returns the default Ethernet multicast address for NDN.

Definition at line 124 of file ethernet.cpp.

std::ostream & ndn::util::ethernet::operator<< ( std::ostream &  o,
const Address a 
)

Definition at line 130 of file ethernet.cpp.

References ndn::util::ethernet::Address::toString().

Variable Documentation

const uint16_t ndn::util::ethernet::ETHERTYPE_NDN = 0x8624

Definition at line 40 of file ethernet.hpp.

Referenced by nfd::EthernetFace::close(), and nfd::EthernetFace::EthernetFace().

const size_t ndn::util::ethernet::ADDR_LEN = 6

Octets in one Ethernet address.

Definition at line 42 of file ethernet.hpp.

Referenced by nfd::EthernetFace::close(), and nfd::listNetworkInterfaces().

const size_t ndn::util::ethernet::TYPE_LEN = 2

Octets in Ethertype field.

Definition at line 43 of file ethernet.hpp.

Referenced by nfd::EthernetFace::close().

const size_t ndn::util::ethernet::HDR_LEN = 14

Total octets in Ethernet header (without 802.1Q tag)

Definition at line 44 of file ethernet.hpp.

Referenced by nfd::EthernetFace::close().

const size_t ndn::util::ethernet::TAG_LEN = 4

Octets in 802.1Q tag (TPID + priority + VLAN)

Definition at line 45 of file ethernet.hpp.

const size_t ndn::util::ethernet::MIN_DATA_LEN = 46

Min octets in Ethernet payload (assuming no 802.1Q tag)

Definition at line 46 of file ethernet.hpp.

Referenced by nfd::EthernetFace::close().

const size_t ndn::util::ethernet::MAX_DATA_LEN = 1500

Max octets in Ethernet payload.

Definition at line 47 of file ethernet.hpp.

Referenced by nfd::EthernetFace::close().

const size_t ndn::util::ethernet::CRC_LEN = 4

Octets in Ethernet frame check sequence.

Definition at line 48 of file ethernet.hpp.