6#ifndef NETLINK_LINK_MACSEC_H_
7#define NETLINK_LINK_MACSEC_H_
9#include <netlink/netlink.h>
10#include <netlink/route/link.h>
11#include <linux/if_link.h>
12#include <linux/if_macsec.h>
18enum macsec_validation_type;
20struct rtnl_link *rtnl_link_macsec_alloc(
void);
28int rtnl_link_macsec_set_cipher_suite(
struct rtnl_link *, uint64_t);
29int rtnl_link_macsec_get_cipher_suite(
struct rtnl_link *, uint64_t *);
31int rtnl_link_macsec_set_icv_len(
struct rtnl_link *, uint16_t);
32int rtnl_link_macsec_get_icv_len(
struct rtnl_link *, uint16_t *);
34int rtnl_link_macsec_set_protect(
struct rtnl_link *, uint8_t);
35int rtnl_link_macsec_get_protect(
struct rtnl_link *, uint8_t *);
37int rtnl_link_macsec_set_encrypt(
struct rtnl_link *, uint8_t);
38int rtnl_link_macsec_get_encrypt(
struct rtnl_link *, uint8_t *);
40int rtnl_link_macsec_set_offload(
struct rtnl_link *, uint8_t);
41int rtnl_link_macsec_get_offload(
struct rtnl_link *, uint8_t *);
43int rtnl_link_macsec_set_encoding_sa(
struct rtnl_link *, uint8_t);
44int rtnl_link_macsec_get_encoding_sa(
struct rtnl_link *, uint8_t *);
46int rtnl_link_macsec_set_validation_type(
struct rtnl_link *,
47 enum macsec_validation_type);
48int rtnl_link_macsec_get_validation_type(
struct rtnl_link *,
49 enum macsec_validation_type *);
51int rtnl_link_macsec_set_replay_protect(
struct rtnl_link *, uint8_t);
52int rtnl_link_macsec_get_replay_protect(
struct rtnl_link *, uint8_t *);
54int rtnl_link_macsec_set_window(
struct rtnl_link *, uint32_t);
55int rtnl_link_macsec_get_window(
struct rtnl_link *, uint32_t *);
57int rtnl_link_macsec_set_send_sci(
struct rtnl_link *, uint8_t);
58int rtnl_link_macsec_get_send_sci(
struct rtnl_link *, uint8_t *);
60int rtnl_link_macsec_set_end_station(
struct rtnl_link *, uint8_t);
61int rtnl_link_macsec_get_end_station(
struct rtnl_link *, uint8_t *);
63int rtnl_link_macsec_set_scb(
struct rtnl_link *, uint8_t);
64int rtnl_link_macsec_get_scb(
struct rtnl_link *, uint8_t *);
int rtnl_link_macsec_set_sci(struct rtnl_link *, uint64_t)
Set SCI.
int rtnl_link_macsec_get_sci(struct rtnl_link *, uint64_t *)
Get SCI.
int rtnl_link_macsec_set_port(struct rtnl_link *, uint16_t)
Set port identifier.
int rtnl_link_macsec_get_port(struct rtnl_link *, uint16_t *)
Get port identifier.