Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
Loading...
Searching...
No Matches
Ethernet Class Reference

#include <ethernet.h>

Inheritance diagram for Ethernet:
NIC< Engine >

Classes

struct  Address
 
struct  Frame
 

Public Types

typedef std::uint16_t Protocol
 

Public Member Functions

struct Ethernet::Frame __attribute__ ((packed))
 
 Ethernet ()=default
 
 ~Ethernet ()=default
 

Static Public Member Functions

static std::string mac_to_string (Address addr)
 

Static Public Attributes

static constexpr unsigned int MTU = 1500
 
static constexpr unsigned int MAC_SIZE = 6
 
static const Ethernet::Address NULL_ADDRESS = {}
 
static const Ethernet::Address BROADCAST = {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}}
 
static constexpr unsigned int HEADER_SIZE = sizeof(Address)*2 + sizeof(Protocol)
 

Member Typedef Documentation

◆ Protocol

typedef std::uint16_t Ethernet::Protocol

Constructor & Destructor Documentation

◆ Ethernet()

Ethernet::Ethernet ( )
default

◆ ~Ethernet()

Ethernet::~Ethernet ( )
default

Member Function Documentation

◆ __attribute__()

struct Ethernet::Frame Ethernet::__attribute__ ( (packed )

◆ mac_to_string()

static std::string Ethernet::mac_to_string ( Address  addr)
inlinestatic

Member Data Documentation

◆ BROADCAST

const Ethernet::Address Ethernet::BROADCAST = {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}}
static

◆ HEADER_SIZE

constexpr unsigned int Ethernet::HEADER_SIZE = sizeof(Address)*2 + sizeof(Protocol)
staticconstexpr

◆ MAC_SIZE

constexpr unsigned int Ethernet::MAC_SIZE = 6
staticconstexpr

◆ MTU

constexpr unsigned int Ethernet::MTU = 1500
staticconstexpr

◆ NULL_ADDRESS

const Ethernet::Address Ethernet::NULL_ADDRESS = {}
static

The documentation for this class was generated from the following file: