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

ethernetPacket::GetDestinationIPAddress

Valid for: CANoe DE • CANoe4SW DE

Method Syntax

Description

Assigns the destination IP address to an ip_Address variable. Note: The ethernetPacket must contain IPv4 or IPv6 protocol. Use ethernetPacket::<protocol>.IsAvailable() before calling this method.

Parameters

  • address: IP address is assigned to this variable.

Return Values

  • 0: success
  • -1: No IPv4 or IPv6 protocol available in packet.

Example

See Also