|
SatCat5
|
EtherType field (uint16) is used a protocol-ID [1536..65535].
Use as a "length" field [64..1500] is supported but not recommended. See also: https://en.wikipedia.org/wiki/EtherType
Definition at line 96 of file eth_header.h.
#include <eth_header.h>
Public Member Functions | |
| MacType (const MacType &t)=default | |
| MacType & | operator= (const MacType &t)=default |
| void | log_to (satcat5::log::LogBuffer &wr) const |
| Format this field as a human-readable string. | |
| void | write_to (satcat5::io::Writeable *wr) const |
| Write this field to a byte-stream. | |
| bool | read_from (satcat5::io::Readable *rd) |
| Read this field from a byte-stream. | |
| bool | operator== (const satcat5::eth::MacType &other) const |
| Basic comparisons. | |
| bool | operator!= (const satcat5::eth::MacType &other) const |
| Basic comparisons. | |
Public Attributes | |
| u16 | value |
| The 16-bit value is stored in processor-native order. | |