Skip to main content

OnPtpSendPrepare

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long OnPtpSendPrepare( ethernetPacket * packet );

Description

If the CAPL program implements this callback it is called right before a packet will be sent by the gPTP stack. It is possible to manipulate the content of the packet or to block the sending of the packet on the network.

Parameters

Return Values

  • 0: Block the Ethernet packet.
  • 1: Send the Ethernet packet.

Example

See Also
  • AvbAccept
  • AvbCloseListener
  • AvbCloseTalker
  • AvbConnect
  • AvbGetLastError
  • AvbGetLastErrorText
  • AvbGetMediaType
  • AvbGetProtocol
  • AvbGetStreamId
  • AvbGetStreamSourceAddress
  • AvbGetStreamUniqueId
  • AvbILControlInit
  • AvbILControlResume
  • AvbILControlStart
  • AvbILControlStop
  • AvbILControlWait
  • AvbListen
  • AvbOpenListener
  • AvbOpenTalker
  • AvbReceive
  • AvbSend
  • AvbSetMediaType
  • AvbSetProperty
  • AvbSetProtocol
  • AvbSetVerbosity
  • OnAvbConnect
  • OnAvbListen
  • OnAvbReceive
  • OnAvbSend
  • OnAvbSendPrepare
  • PtpSetProperty
  • PtpSimulationTimespanFromPtpTimespan
  • PtpTimeFromSimulationTime
  • PtpTimeNow