MACsec Intel FPGA System Design User Guide

ID 767516
Date 3/03/2023

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.6.4. macsec_set_attributes


int macsec_set_attr (struct macsec_info *info, uint32_t port, enum macsec_attr attr, const void *value)

Sets a global MACsec attribute.

Gets the MACsec attribute values for belonging to the port.


info—points to the macsec_info structure.

port—MACsec instance.

attr—MACsec attribute to set the value.

value—points to the value to set for the attribute.


MACSEC_OK if successful.

MACSEC_ERR_INVALID_ARG if value, macsec_attr or info is NULL.

MACSEC_ERR_INVALID_PORT if the port is not initialized or is greater than the current MACsec instances supported.

MACSEC_ERR_INVALID_ATTR if attribute is invalid.

MACSEC_ERR_INVALID_VALUE if value is out of range.

MACSEC_ERR_WRITE if fails to write.