ethernetPacket Selectors: <protocol>.byteOffset
CAPL Functions » Ethernet » Function Overview » ethernetPacket » Selector <protocol>.byteOffset
Valid for: CANoe DE • CANoe4SW DE
Selectors
Syntax:dword ethernetPacket.<protocol>.byteOffset;
Description
Returns the byte-offset of the protocol payload within the Ethernet packet. The selector is read only. Offset 0 is directly after the Ethertype. If<protocol> is not contained in the packet, the selector returns 0.
ethernetPacket::protocol::IsAvailable can be used to find out if the protocol is available.