Sponge
CS144's user-space TCP library
|
Go to the source code of this file.
Classes | |
struct | EthernetHeader |
Ethernet frame header. More... | |
Typedefs | |
using | EthernetAddress = std::array< uint8_t, 6 > |
Helper type for an Ethernet address (an array of six bytes) More... | |
Functions | |
std::string | to_string (const EthernetAddress address) |
Printable representation of an EthernetAddress. More... | |
Variables | |
constexpr EthernetAddress | ETHERNET_BROADCAST = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff} |
Ethernet broadcast address (ff:ff:ff:ff:ff:ff) More... | |
using EthernetAddress = std::array<uint8_t, 6> |
Helper type for an Ethernet address (an array of six bytes)
Definition at line 9 of file ethernet_header.hh.
std::string to_string | ( | const EthernetAddress | address | ) |
Printable representation of an EthernetAddress.
Definition at line 52 of file ethernet_header.cc.
|
constexpr |
Ethernet broadcast address (ff:ff:ff:ff:ff:ff)
Definition at line 12 of file ethernet_header.hh.