C_Tag - 802.1Q Customer VLAN Tag Type¶
pcapkit.protocols.link.c_tag.protocol contains
C_Tag only, which implements the extractor for
the 802.1Q Customer VLAN Tag Type (C-Tag) [*], EtherType
0x8100.
Its structure, and all of its parsing and construction, come from
VLAN; this class adds only the tag’s own
identity – name,
alias,
info_name,
id() – and its registry index.
It has a package of its own, apart from
S_Tag, since a package holds one protocol
class, named after it, with only the framework bases in
pcapkit.protocols.protocol exempt (#2529). The two tags are
reached through different registry indices, 0x8100 against 0x88A8.
- class pcapkit.protocols.link.c_tag.protocol.C_Tag(file=None, length=None, **kwargs)[source]¶
Bases:
VLANThis class implements 802.1Q Customer VLAN Tag Type.
Added in version 1.5.0: Takes over the customer tag from
VLAN.
Footnotes