ethernetPacket::GetProtocolErrorText
Valid for: CANoe DE • CANoe4SW DEMethod Syntax
word ethernetPacket.GetProtocolErrorText( char buffer[] ); // form 1word ethernetPacket.GetProtocolErrorText( dword format, char buffer[] ); // form 2
Description
Copies an error text to the buffer for invalid Ethernet packets. For valid Ethernet packets, an empty string is returned. If format is specified, you can obtain corresponding information, e.g.Error [IPv4-005]: Checksum is not correct.
Parameters
-
buffer
Char buffer where the error string is copied to. -
format
- 0: only error text (same as form 1)
- 1: error text, severity and error number
- 2: error number only