C_Tag - 802.1Q Customer VLAN Tag Type¶
pcapkit.protocols.link.c_tag contains
C_Tag only, which implements 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 module of its own, apart from
S_Tag, because the two are reached through
different registry indices, 0x8100 against 0x88A8; see
pcapkit.protocols.link.vlan for the rule.
- class pcapkit.protocols.link.c_tag.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