ethernetPacket
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Method Syntax
- ethernetPacket::Clear
- ethernetPacket::CompletePacket
- ethernetPacket::FaultInjectDisableLengthPadding
- ethernetPacket::FaultInjectFCS
- ethernetPacket::GetData
- ethernetPacket::GetDestinationIPAddress
- ethernetPacket::GetDestinationIPEndpoint
- ethernetPacket::GetPDU
- ethernetPacket::GetProtocolErrorText
- ethernetPacket::GetSourceIPAddress
- ethernetPacket::GetSourceEndpoint
- ethernetPacket::GetVlan
- ethernetPacket::GetVlanId
- ethernetPacket::GetVlanPriority
- ethernetPacket::HasProtocolError
- ethernetPacket::HasVlan
- ethernetPacket::PDUCount
- ethernetPacket::PDUOffset
- ethernetPacket::protocol::field::GetData
- ethernetPacket::protocol::field::IsAvailable
- ethernetPacket::protocol::field::ParseAddress
- ethernetPacket::protocol::field::SetData
- ethernetPacket::protocol::GetData
- ethernetPacket::protocol::Init
- ethernetPacket::protocol::IsAvailable
- ethernetPacket::protocol::optional-structure::Clear
- ethernetPacket::protocol::optional-structure::Init
- ethernetPacket::protocol::ResizeData
- ethernetPacket::protocol::SetData
- ethernetPacket::RemoveVlan
- ethernetPacket::SetData
- ethernetPacket::SetDestinationIPAddress
- ethernetPacket::SetDestinationIPEndpoint
- ethernetPacket::SetSourceIPAddress
- ethernetPacket::SetSourceIPEndpoint
- ethernetPacket::SetVlan
- ethernetPacket::SetVlanId
- ethernetPacket::SetVlanPriority
Description
Can be used to create an Ethernet send object. The object data can be manipulated by selectors associated with this object.Parameters
- packet var: Character string defining the object’s variable name.
Selectors
-
time_ns: Point in time, units: nanoseconds
Type: int64
Access Limitation: read-only -
dir: Direction of transmission, event classification; possible values: Rx, Tx
Type: byte
Access Limitation: — -
msgChannel: Application channel, i.e. Eth 1
Type: word
Access Limitation: — -
hwChannel: Hardware channel. If not supported by network interface, value is 1.
Type: word
Access Limitation: Only with Vector Interfaces, i.e. VN5640, with operation mode with more than 1 hardware channel. Channel-based network access only -
hwPort: Port used for network-based access. Setting the port automatically sets the msgChannel as the channel the port is assigned to.
Type: ethernetPort
Access Limitation: network-based access only -
Length: Length of Ethernet payload data (starting after the Ethertype).
Type: word
Access Limitation: — -
FCS: Ethernet packet checksum. For some Ethernet hardware this value is not available (value 0).
Type: dword
Access Limitation: read-only -
FrameLen: Frame duration in ns. For some Ethernet hardware this value is not available (value 0).
Type: int64
Access Limitation: read-only -
SOF: Start-of-Frame time stamp in ns. For some Ethernet hardware this value is not available (value 0).
Type: int64
Access Limitation: read-only -
Type: Ethertype
Type: word
Access Limitation: — -
Source: Source Ethernet MAC address. Only 6 bytes of the QWord are used and network byte order is used.
Type: qword
Access Limitation: — -
Destination: Destination Ethernet MAC address. Only 6 bytes of the QWord are used and network byte order is used.
Type: qword
Access Limitation: — -
byte(x): Message data byte (unsigned 8 bit); Offset 0 is the byte directly after the Ethertype.
Type: byte
Access Limitation: — -
char(x): Message data byte (signed 8 bit); Offset 0 is the byte directly after the Ethertype.
Type: char
Access Limitation: — -
word(x): Message data word (unsigned 16 bit); Offset 0 is the word directly after the Ethertype.
Type: word
Access Limitation: — -
int(x): Message data word (signed 16 bit); Offset 0 is the int directly after the Ethertype.
Type: int
Access Limitation: — -
dword(x): Message data word (unsigned 32 bit); Offset 0 is the dword directly after the Ethertype.
Type: dword
Access Limitation: — -
long(x): Message data word (signed 32 bit); Offset 0 is the long directly after the Ethertype.
Type: long
Access Limitation: — -
qword(x): Message data word (unsigned 64 bit); Offset 0 is the qword directly after the Ethertype.
Type: qword
Access Limitation: — -
int64(x): Message data word (signed 64 bit); Offset 0 is the int64 directly after the Ethertype.
Type: int64
Access Limitation: — -
Simulated: Message has been sent by a simulated CAPL node; possible values: 0 (no), 1 (yes)
Type: byte
Access Limitation: read-only -
<protocol>.byte/word/dword/qword/char/int/int64/long
Type: byte, word, dword, qword, char, int, int64, long
Access Limitation: — -
<protocol>.byteLength
Type: long
Access Limitation: read-only -
<protocol>.byteOffset
Type: long
Access Limitation: read-only -
<protocol>.<field>
Type: byte, word, dword, qword (depends on field)
Access Limitation: — -
<protocol>.<field>.bitLength
Type: long
Access Limitation: read-only -
<protocol>.<field>.bitOffset
Type: long
Access Limitation: read-only -
<protocol>.<field>.byteLength
Type: long
Access Limitation: read-only -
<protocol>.<field>.byteOffset
Type: long
Access Limitation: read-only -
<protocol>.<optional-structure>.<field>
Type: byte, word, dword, qword (depends on field)
Access Limitation: —