Skip to main content

GetPDUsTPIPv4DstAddr

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

This function can only be used within a on PDU handler. If the PDU was received via IPv4, with this function the IPv4 destination address can be requested.

Parameters

  • this: Handle to the currently handled (received) PDU object.
  • destinationIPv4Address: IPv4 destination address in network byte order.

Return Values

  • 0: Data access successful.
  • -1: Wrong bus system.
  • -2: The requested information was not available. Most probably the PDU was not received by an IPv4 layer.
  • -3: The PDU object is invalid.
  • -4: PDU is not of RX type.
  • -5: Parameter too small (e.g. array has too less bytes)
  • -6: Message or PDU is not available (any more)

Example

GetPDUsTPIPv4SrcAddrGetPDUsTPIPv6DstAddrGetPDUsTPIPv6SrcAddrGetPDUsTPTCPDstPortGetPDUsTPTCPSrcPortGetPDUsTPUDPDstPortGetPDUsTPUDPSrcPort