Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Open topic with navigation CAPL Functions » Ethernet » Function Overview » EthernetMacsecSecureEntity::GetDefaultRxSC

EthernetMacsecSecureEntity::GetDefaultRxSC

Valid for: CANoe DE

Method Syntax

byte EthernetMacsecSecureEntity.GetDefaultRxSC(EthernetMacsecSCI& sci);

Description

Returns the default secure channel used for receiving. When receiving a MACsec frame without SCI (SC bit clear), and with ES bit clear, this secure channel will be used for decoding the MACsec frame. Otherwise, the receive secure channel for decoding the MACsec frame will be determined from the MACsec frame’s content (SCI, or ES bit and source MAC address).

Parameters

  • sci: Returns the secure channel id of the secure channel used for receiving.

Return Values

  • byte: 1 if the call succeeded, 0 otherwise. The call will fail if no secure channel has been created.

Example