|
SatCat5
|
Header contents for an 802.1Q Virtual-LAN tag.
See also: https://en.wikipedia.org/wiki/IEEE_802.1Q
Definition at line 124 of file eth_header.h.
#include <eth_header.h>
Public Member Functions | |
| VlanTag (const VlanTag &t)=default | |
| VlanTag & | operator= (const VlanTag &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 | any () const |
| Accessors for each individual field. | |
| u16 | vid () const |
| Accessors for each individual field. | |
| u16 | dei () const |
| Accessors for each individual field. | |
| u16 | pcp () const |
| Accessors for each individual field. | |
| void | set (u16 vid, u16 dei, u16 pcp) |
| Accessors for each individual field. | |
| bool | operator== (const satcat5::eth::VlanTag &other) const |
| Basic comparisons. | |
| bool | operator!= (const satcat5::eth::VlanTag &other) const |
| Basic comparisons. | |
Public Attributes | |
| u16 | value |
| The 16-bit value holds VID, DEI, and PCP fields. | |