Skip to main content

DoIP_SetLocalIPaddressVersion

Valid for: CANoe DE Note
The 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

When no local IP address is given explicitly, select the local address according to the priority set with this function. For example, this will allow the selection of a specific address type when only the network adapter is configured.

Parameters

  • addressIPVersion
    • 0: Use IPv6 address if no IPv4 address is available (default)
    • 4: Use only IPv4 address
    • 6: Use only IPv6 address other: reserved

Return Values

Error code

Example

DoIP_SetLocalIPaddressDoIP_SetTesterAdapterDoIP_SetVehicleAdapter