ethernet.hpp File Reference
#include <array>
#include <cstdint>
#include <functional>
#include <string>
+ Include dependency graph for ethernet.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ndn::ethernet::Address
 Represents an Ethernet hardware address. More...
 
struct  std::hash< ndn::ethernet::Address >
 

Namespaces

 ndn
 
 ndn::ethernet
 

Functions

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

Variables

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