ndn::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

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

Function Documentation

◆ getBroadcastAddress()

Address ndn::ethernet::getBroadcastAddress ( )

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

Definition at line 115 of file ethernet.cpp.

◆ getDefaultMulticastAddress()

Address ndn::ethernet::getDefaultMulticastAddress ( )

Returns the default Ethernet multicast address for NDN.

Definition at line 121 of file ethernet.cpp.

◆ operator<<()

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

Definition at line 126 of file ethernet.cpp.

Variable Documentation

◆ ADDR_LEN

constexpr size_t ndn::ethernet::ADDR_LEN = 6
inlineconstexpr

Octets in one Ethernet address.

Definition at line 40 of file ethernet.hpp.

◆ CRC_LEN

constexpr size_t ndn::ethernet::CRC_LEN = 4
inlineconstexpr

Octets in Ethernet frame check sequence.

Definition at line 46 of file ethernet.hpp.

◆ ETHERTYPE_NDN

constexpr uint16_t ndn::ethernet::ETHERTYPE_NDN = 0x8624
inlineconstexpr

The NDN Ethertype.

Definition at line 38 of file ethernet.hpp.

◆ HDR_LEN

constexpr size_t ndn::ethernet::HDR_LEN = 14
inlineconstexpr

Total octets in Ethernet header (without 802.1Q tag)

Definition at line 42 of file ethernet.hpp.

◆ MAX_DATA_LEN

constexpr size_t ndn::ethernet::MAX_DATA_LEN = 1500
inlineconstexpr

Max octets in Ethernet payload.

Definition at line 45 of file ethernet.hpp.

◆ MIN_DATA_LEN

constexpr size_t ndn::ethernet::MIN_DATA_LEN = 46
inlineconstexpr

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

Definition at line 44 of file ethernet.hpp.

◆ TAG_LEN

constexpr size_t ndn::ethernet::TAG_LEN = 4
inlineconstexpr

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

Definition at line 43 of file ethernet.hpp.

◆ TYPE_LEN

constexpr size_t ndn::ethernet::TYPE_LEN = 2
inlineconstexpr

Octets in Ethertype field.

Definition at line 41 of file ethernet.hpp.