Skip to main content
Open topic with navigation CAPL Functions » Ethernet » Function Overview » ethernetPacket::source::ParseAddress

ethernetPacket::source::ParseAddress

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

  • long ethernetPacket.source.ParseAddress( char addressAsString[] ); // form 1
  • long ethernetPacket.destination.ParseAddress( char addressAsString[] ); // form 2

Description

Sets the source or destination MAC address of an Ethernet packet with a string. The address must be given in this form: 02:00:00:12:34:AB

Parameters

  • addressAsString: Address in text form of format MAC address.

Example

ethernetPacket pkt;

pkt.source.ParseAddress( "02:00:00:00:00:01" );
pkt.destination.ParseAddress( "FF:FF:FF:FF:FF:FF" );
See Also