NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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::util::ethernet::Address
 represents an Ethernet hardware address More...
 
struct  std::hash< ndn::util::ethernet::Address >
 

Namespaces

 ndn
 Copyright (c) 2011-2015 Regents of the University of California.
 
 ndn::util
 
 ndn::util::ethernet
 

Functions

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

Variables

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