OnIpReceivePrepare
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
If the CAPL program implements this callback, it is called right before a received packet will be dispatched to the TCP/IP stack. It is possible to manipulate the content of the packet or to block the receiving of the package from the bus. Note: The callback is only available for simulation nodes using the individual TCP/IP stack instance. Check this setting in the CANoe DE product TCP/IP Stack configuration dialog.Parameters
- packet: The received Ethernet packet.
Return Values
- 0: Block the Ethernet packet.
- 1: Pass the Ethernet packet to the TCP/IP stack.