S_Tag - 802.1ad Service VLAN Tag Type¶
pcapkit.protocols.link.s_tag.protocol contains
S_Tag only, which implements the extractor for
the 802.1ad Service VLAN Tag Type (S-Tag) [*], EtherType 0x88A8.
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
C_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, 0x88A8 against 0x8100.
- class pcapkit.protocols.link.s_tag.protocol.S_Tag(file=None, length=None, **kwargs)[source]¶
Bases:
VLANThis class implements 802.1ad Service VLAN Tag Type.
Note
802.1ad was incorporated into IEEE 802.1Q-2011, so the service tag is specified by 802.1Q. The
802.1adname is kept because it is what the provider-bridging tag is universally called, and because it is the only thing distinguishing this class fromC_Tagby name.Added in version 1.5.0.
Footnotes