> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionDoIPTransportLayerStatusInd

# \_DoIP\_TransportLayerStatusInd

[Valid for: CANoe DE](../../../Shared/FeatureAvailability.md)

**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:

* [DoIP CAPL Introduction](../CAPLDiagnosticDoIP.md)
* [AN-IND-1-012\_CAPL\_Callback\_Interface.pdf](javascript:startDemoLoader\('AN-IND-1-012_CAPL_Callback_Interface.pdf'\))
* [AN-IND-1-026\_DoIP\_in\_CANoe.pdf](javascript:startDemoLoader\('AN-IND-1-026_DoIP_in_CANoe.pdf'\))

## Function Syntax

```plaintext theme={null}
void _DoIP_TransportLayerStatusInd(byte tpStatusType, byte tpStatusCode, byte applicationLayerService, dword sourceAddress, dword targetAddress);
```

## Description

This callback is called from the DoIP layer when transport layer status message according ISO 13400-2:2019/Amd1 payload type 0x9001 is received.

## Parameters

* **tpStatusType**: The transport layer status type.
* **tpStatusCode**: The transport layer status code related to any error information associated with the transport protocol status type.
* **applicationLayerService**: The application layer service that the transport layer status message corresponds to.
* **sourceAddress**: Logical DoIP address of the sender.
* **targetAddress**: Logical DoIP address of the receiver.

## Return Values

—

## Example

```plaintext theme={null}
void _DoIP_TransportLayerStatusInd(byte tpStatusType, byte tpStatusCode, byte applicationLayerService, dword sourceAddress, dword targetAddress)
{
  write("Transport layer status information from source address 0x%x for service $%x received with status type 0x%x and status code 0x%x", sourceAddress, applicationLayerService, tpStatusType, tpStatusCode);
}
```
