12 static constexpr unsigned int MTU = 1500;
37 std::ostringstream
oss;
39 if (
i != 0)
oss <<
":";
struct Ethernet::Frame __attribute__((packed))
static std::string mac_to_string(Address addr)
Definition ethernet.h:36
static constexpr unsigned int MAC_SIZE
Definition ethernet.h:13
static const Ethernet::Address BROADCAST
Definition ethernet.h:54
std::uint16_t Protocol
Definition ethernet.h:24
static constexpr unsigned int HEADER_SIZE
Definition ethernet.h:26
static constexpr unsigned int MTU
Definition ethernet.h:12
static const Ethernet::Address NULL_ADDRESS
Definition ethernet.h:53
Select_Debug<(Traits< T >::debugged &&Traits< Debug >::error)> db(Debug_Error l)
Definition debug.h:166
bool operator==(const Ethernet::Address &a, const Ethernet::Address &b)
Definition ethernet.h:57
bool operator!=(const Ethernet::Address &a, const Ethernet::Address &b)
Definition ethernet.h:61
std::uint8_t bytes[MAC_SIZE]
Definition ethernet.h:17
Address dst
Definition ethernet.h:30
Address src
Definition ethernet.h:31
std::uint8_t payload[MTU]
Definition ethernet.h:33
Protocol prot
Definition ethernet.h:32