TSDuck v3.40-3963
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::VLANId Class Reference

A structure which describes a VLAN identification. More...

#include <tsIPProtocols.h>

Public Attributes

uint32_t id
 The VLAN id identifies the VLAN in an encapsulation layer.
 
uint16_t type
 The VLAN type identifies the encapsulation type of the VLAN.
 

Detailed Description

A structure which describes a VLAN identification.

Member Data Documentation

◆ type

uint16_t ts::VLANId::type

The VLAN type identifies the encapsulation type of the VLAN.

This is an Ethertype, typically one of ETHERTYPE_802_1Q, ETHERTYPE_802_1AD, ETHERTYPE_802_1AH.

◆ id

uint32_t ts::VLANId::id

The VLAN id identifies the VLAN in an encapsulation layer.

  • With ETHERTYPE_802_1Q, this is a 12-bit basic VLAN id or Customer VLAN identifier (C-VID) when encapsulated.
  • With ETHERTYPE_802_1AD, this is a 12-bit Backbone VLAN identifier (B-VID).
  • With ETHERTYPE_802_1AH, this is a 24-bit MIM Service identifier (I-SID).

The documentation for this class was generated from the following file: