Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
|
#include <ethernet.h>
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) |
typedef std::uint16_t Ethernet::Protocol |
|
default |
|
default |
struct Ethernet::Frame Ethernet::__attribute__ | ( | (packed) | ) |
|
static |
|
static |