Open topic with navigation CAPL Functions » Ethernet » Function Overview » ethernetPacket::GetVlanIdDocumentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
ethernetPacket::GetVlanId
Valid for: CANoe DE • CANoe4SW DEMethod Syntax
dword ethernetPacket.GetVlanId(); // form 1dword ethernetPacket.GetVlanId(dword vlanIndex); // form 2
Description
Returns the VLAN ID, if the Ethernet packet contains a VLAN tag. For double-tagged VLAN form 2 can be used to access a specific VLAN ID.Parameters
- vlanIndex: Index of the VLAN tag for double-tagged VLANs. Index 0 is the inner VLAN, index 1 the outer VLAN.
Range: 0..2