_DoIP_UDPInd
Valid for: CANoe DE NoteThe following DoIP CAPL function is only available with the modeling library DoIP.dll and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:
Function Syntax
Description
An UDP packet was received. All packets are forwarded to this callback function, and it can decide whether processing of the packet stops, or is continued. The sender IP address and source port is given as first arguments. NoteThis callback is called for every packet before any other processing is performed. If only packets unknown to the DoIP implementation shall be processed, use _DoIP_UDPDataInd.
Parameters
- IPaddress: Address in text form, e.g. “169.254.32.1” (IPv4) or “2001::1” (IPv6).
- port: IP source port of the packet at the sender.
- data: The raw data received, including complete header, if present.
Return Values
- 0: Continue normal processing of the packet.
- -1: Ignore the packet, i.e. all processing stops other reserved.