Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      2  ****************************************************************************
      3  ***
      4  ***   This header was automatically generated from a Linux kernel header
      5  ***   of the same name, to make information necessary for userspace to
      6  ***   call into the kernel available to libc.  It contains only constants,
      7  ***   structures, and macros generated from the original header, and thus,
      8  ***   contains no copyrightable information.
      9  ***
     10  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _UAPI_MACSEC_H
     20 #define _UAPI_MACSEC_H
     21 #include <linux/types.h>
     22 #define MACSEC_GENL_NAME "macsec"
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define MACSEC_GENL_VERSION 1
     25 #define MACSEC_MAX_KEY_LEN 128
     26 #define MACSEC_KEYID_LEN 16
     27 #define MACSEC_DEFAULT_CIPHER_ID 0x0080020001000001ULL
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define MACSEC_DEFAULT_CIPHER_ALT 0x0080C20001000001ULL
     30 #define MACSEC_MIN_ICV_LEN 8
     31 #define MACSEC_MAX_ICV_LEN 32
     32 #define MACSEC_STD_ICV_LEN 16
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 enum macsec_attrs {
     35   MACSEC_ATTR_UNSPEC,
     36   MACSEC_ATTR_IFINDEX,
     37   MACSEC_ATTR_RXSC_CONFIG,
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39   MACSEC_ATTR_SA_CONFIG,
     40   MACSEC_ATTR_SECY,
     41   MACSEC_ATTR_TXSA_LIST,
     42   MACSEC_ATTR_RXSC_LIST,
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   MACSEC_ATTR_TXSC_STATS,
     45   MACSEC_ATTR_SECY_STATS,
     46   __MACSEC_ATTR_END,
     47   NUM_MACSEC_ATTR = __MACSEC_ATTR_END,
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49   MACSEC_ATTR_MAX = __MACSEC_ATTR_END - 1,
     50 };
     51 enum macsec_secy_attrs {
     52   MACSEC_SECY_ATTR_UNSPEC,
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   MACSEC_SECY_ATTR_SCI,
     55   MACSEC_SECY_ATTR_ENCODING_SA,
     56   MACSEC_SECY_ATTR_WINDOW,
     57   MACSEC_SECY_ATTR_CIPHER_SUITE,
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59   MACSEC_SECY_ATTR_ICV_LEN,
     60   MACSEC_SECY_ATTR_PROTECT,
     61   MACSEC_SECY_ATTR_REPLAY,
     62   MACSEC_SECY_ATTR_OPER,
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64   MACSEC_SECY_ATTR_VALIDATE,
     65   MACSEC_SECY_ATTR_ENCRYPT,
     66   MACSEC_SECY_ATTR_INC_SCI,
     67   MACSEC_SECY_ATTR_ES,
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69   MACSEC_SECY_ATTR_SCB,
     70   MACSEC_SECY_ATTR_PAD,
     71   __MACSEC_SECY_ATTR_END,
     72   NUM_MACSEC_SECY_ATTR = __MACSEC_SECY_ATTR_END,
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74   MACSEC_SECY_ATTR_MAX = __MACSEC_SECY_ATTR_END - 1,
     75 };
     76 enum macsec_rxsc_attrs {
     77   MACSEC_RXSC_ATTR_UNSPEC,
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79   MACSEC_RXSC_ATTR_SCI,
     80   MACSEC_RXSC_ATTR_ACTIVE,
     81   MACSEC_RXSC_ATTR_SA_LIST,
     82   MACSEC_RXSC_ATTR_STATS,
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84   MACSEC_RXSC_ATTR_PAD,
     85   __MACSEC_RXSC_ATTR_END,
     86   NUM_MACSEC_RXSC_ATTR = __MACSEC_RXSC_ATTR_END,
     87   MACSEC_RXSC_ATTR_MAX = __MACSEC_RXSC_ATTR_END - 1,
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 };
     90 enum macsec_sa_attrs {
     91   MACSEC_SA_ATTR_UNSPEC,
     92   MACSEC_SA_ATTR_AN,
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94   MACSEC_SA_ATTR_ACTIVE,
     95   MACSEC_SA_ATTR_PN,
     96   MACSEC_SA_ATTR_KEY,
     97   MACSEC_SA_ATTR_KEYID,
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99   MACSEC_SA_ATTR_STATS,
    100   MACSEC_SA_ATTR_PAD,
    101   __MACSEC_SA_ATTR_END,
    102   NUM_MACSEC_SA_ATTR = __MACSEC_SA_ATTR_END,
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104   MACSEC_SA_ATTR_MAX = __MACSEC_SA_ATTR_END - 1,
    105 };
    106 enum macsec_nl_commands {
    107   MACSEC_CMD_GET_TXSC,
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109   MACSEC_CMD_ADD_RXSC,
    110   MACSEC_CMD_DEL_RXSC,
    111   MACSEC_CMD_UPD_RXSC,
    112   MACSEC_CMD_ADD_TXSA,
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114   MACSEC_CMD_DEL_TXSA,
    115   MACSEC_CMD_UPD_TXSA,
    116   MACSEC_CMD_ADD_RXSA,
    117   MACSEC_CMD_DEL_RXSA,
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119   MACSEC_CMD_UPD_RXSA,
    120 };
    121 enum macsec_rxsc_stats_attr {
    122   MACSEC_RXSC_STATS_ATTR_UNSPEC,
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124   MACSEC_RXSC_STATS_ATTR_IN_OCTETS_VALIDATED,
    125   MACSEC_RXSC_STATS_ATTR_IN_OCTETS_DECRYPTED,
    126   MACSEC_RXSC_STATS_ATTR_IN_PKTS_UNCHECKED,
    127   MACSEC_RXSC_STATS_ATTR_IN_PKTS_DELAYED,
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129   MACSEC_RXSC_STATS_ATTR_IN_PKTS_OK,
    130   MACSEC_RXSC_STATS_ATTR_IN_PKTS_INVALID,
    131   MACSEC_RXSC_STATS_ATTR_IN_PKTS_LATE,
    132   MACSEC_RXSC_STATS_ATTR_IN_PKTS_NOT_VALID,
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134   MACSEC_RXSC_STATS_ATTR_IN_PKTS_NOT_USING_SA,
    135   MACSEC_RXSC_STATS_ATTR_IN_PKTS_UNUSED_SA,
    136   MACSEC_RXSC_STATS_ATTR_PAD,
    137   __MACSEC_RXSC_STATS_ATTR_END,
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139   NUM_MACSEC_RXSC_STATS_ATTR = __MACSEC_RXSC_STATS_ATTR_END,
    140   MACSEC_RXSC_STATS_ATTR_MAX = __MACSEC_RXSC_STATS_ATTR_END - 1,
    141 };
    142 enum macsec_sa_stats_attr {
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144   MACSEC_SA_STATS_ATTR_UNSPEC,
    145   MACSEC_SA_STATS_ATTR_IN_PKTS_OK,
    146   MACSEC_SA_STATS_ATTR_IN_PKTS_INVALID,
    147   MACSEC_SA_STATS_ATTR_IN_PKTS_NOT_VALID,
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149   MACSEC_SA_STATS_ATTR_IN_PKTS_NOT_USING_SA,
    150   MACSEC_SA_STATS_ATTR_IN_PKTS_UNUSED_SA,
    151   MACSEC_SA_STATS_ATTR_OUT_PKTS_PROTECTED,
    152   MACSEC_SA_STATS_ATTR_OUT_PKTS_ENCRYPTED,
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154   __MACSEC_SA_STATS_ATTR_END,
    155   NUM_MACSEC_SA_STATS_ATTR = __MACSEC_SA_STATS_ATTR_END,
    156   MACSEC_SA_STATS_ATTR_MAX = __MACSEC_SA_STATS_ATTR_END - 1,
    157 };
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159 enum macsec_txsc_stats_attr {
    160   MACSEC_TXSC_STATS_ATTR_UNSPEC,
    161   MACSEC_TXSC_STATS_ATTR_OUT_PKTS_PROTECTED,
    162   MACSEC_TXSC_STATS_ATTR_OUT_PKTS_ENCRYPTED,
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164   MACSEC_TXSC_STATS_ATTR_OUT_OCTETS_PROTECTED,
    165   MACSEC_TXSC_STATS_ATTR_OUT_OCTETS_ENCRYPTED,
    166   MACSEC_TXSC_STATS_ATTR_PAD,
    167   __MACSEC_TXSC_STATS_ATTR_END,
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169   NUM_MACSEC_TXSC_STATS_ATTR = __MACSEC_TXSC_STATS_ATTR_END,
    170   MACSEC_TXSC_STATS_ATTR_MAX = __MACSEC_TXSC_STATS_ATTR_END - 1,
    171 };
    172 enum macsec_secy_stats_attr {
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174   MACSEC_SECY_STATS_ATTR_UNSPEC,
    175   MACSEC_SECY_STATS_ATTR_OUT_PKTS_UNTAGGED,
    176   MACSEC_SECY_STATS_ATTR_IN_PKTS_UNTAGGED,
    177   MACSEC_SECY_STATS_ATTR_OUT_PKTS_TOO_LONG,
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179   MACSEC_SECY_STATS_ATTR_IN_PKTS_NO_TAG,
    180   MACSEC_SECY_STATS_ATTR_IN_PKTS_BAD_TAG,
    181   MACSEC_SECY_STATS_ATTR_IN_PKTS_UNKNOWN_SCI,
    182   MACSEC_SECY_STATS_ATTR_IN_PKTS_NO_SCI,
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184   MACSEC_SECY_STATS_ATTR_IN_PKTS_OVERRUN,
    185   MACSEC_SECY_STATS_ATTR_PAD,
    186   __MACSEC_SECY_STATS_ATTR_END,
    187   NUM_MACSEC_SECY_STATS_ATTR = __MACSEC_SECY_STATS_ATTR_END,
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189   MACSEC_SECY_STATS_ATTR_MAX = __MACSEC_SECY_STATS_ATTR_END - 1,
    190 };
    191 #endif
    192