Skip to main content
Open topic with navigation

ethGetMacsecSecureEntity

CAPL Functions » Ethernet » Function Overview » ethGetMacsecSecureEntity

Tool Availability

Valid for: CANoe DE

Function Syntax

EthernetMacsecSecureEntity ethGetMacsecSecureEntity(ethernetPort port);

Description

Returns the MACsec Secure Entity associated with the given measurement port. The measurement port must have an existing MACsec configuration to get a valid MACsec secure entity.

Parameters

  • port: A measurement port with an existing MACsec configuration.

Return Values

  • EthernetMacsecSecureEntity: The MACsec secure entity. Check with its property isValid if the call succeeded.

Example

EthernetMacsecSecureEntity secY1;
secY1 = ethGetMacsecSecureEntity(ethernetport::Ethernet1::Port1);
if (secY1.isValid)
{
  // use methods of EthernetMacsecSecureEntity to manipulate or query the secure entity
}