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 _LINUX_PFKEY2_H
     20 #define _LINUX_PFKEY2_H
     21 #include <linux/types.h>
     22 #define PF_KEY_V2 2
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define PFKEYV2_REVISION 199806L
     25 struct sadb_msg {
     26  uint8_t sadb_msg_version;
     27  uint8_t sadb_msg_type;
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29  uint8_t sadb_msg_errno;
     30  uint8_t sadb_msg_satype;
     31  uint16_t sadb_msg_len;
     32  uint16_t sadb_msg_reserved;
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34  uint32_t sadb_msg_seq;
     35  uint32_t sadb_msg_pid;
     36 } __attribute__((packed));
     37 struct sadb_ext {
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  uint16_t sadb_ext_len;
     40  uint16_t sadb_ext_type;
     41 } __attribute__((packed));
     42 struct sadb_sa {
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  uint16_t sadb_sa_len;
     45  uint16_t sadb_sa_exttype;
     46  uint32_t sadb_sa_spi;
     47  uint8_t sadb_sa_replay;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  uint8_t sadb_sa_state;
     50  uint8_t sadb_sa_auth;
     51  uint8_t sadb_sa_encrypt;
     52  uint32_t sadb_sa_flags;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 } __attribute__((packed));
     55 struct sadb_lifetime {
     56  uint16_t sadb_lifetime_len;
     57  uint16_t sadb_lifetime_exttype;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59  uint32_t sadb_lifetime_allocations;
     60  uint64_t sadb_lifetime_bytes;
     61  uint64_t sadb_lifetime_addtime;
     62  uint64_t sadb_lifetime_usetime;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 } __attribute__((packed));
     65 struct sadb_address {
     66  uint16_t sadb_address_len;
     67  uint16_t sadb_address_exttype;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69  uint8_t sadb_address_proto;
     70  uint8_t sadb_address_prefixlen;
     71  uint16_t sadb_address_reserved;
     72 } __attribute__((packed));
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74 struct sadb_key {
     75  uint16_t sadb_key_len;
     76  uint16_t sadb_key_exttype;
     77  uint16_t sadb_key_bits;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  uint16_t sadb_key_reserved;
     80 } __attribute__((packed));
     81 struct sadb_ident {
     82  uint16_t sadb_ident_len;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  uint16_t sadb_ident_exttype;
     85  uint16_t sadb_ident_type;
     86  uint16_t sadb_ident_reserved;
     87  uint64_t sadb_ident_id;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 } __attribute__((packed));
     90 struct sadb_sens {
     91  uint16_t sadb_sens_len;
     92  uint16_t sadb_sens_exttype;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  uint32_t sadb_sens_dpd;
     95  uint8_t sadb_sens_sens_level;
     96  uint8_t sadb_sens_sens_len;
     97  uint8_t sadb_sens_integ_level;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  uint8_t sadb_sens_integ_len;
    100  uint32_t sadb_sens_reserved;
    101 } __attribute__((packed));
    102 struct sadb_prop {
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104  uint16_t sadb_prop_len;
    105  uint16_t sadb_prop_exttype;
    106  uint8_t sadb_prop_replay;
    107  uint8_t sadb_prop_reserved[3];
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 } __attribute__((packed));
    110 struct sadb_comb {
    111  uint8_t sadb_comb_auth;
    112  uint8_t sadb_comb_encrypt;
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114  uint16_t sadb_comb_flags;
    115  uint16_t sadb_comb_auth_minbits;
    116  uint16_t sadb_comb_auth_maxbits;
    117  uint16_t sadb_comb_encrypt_minbits;
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119  uint16_t sadb_comb_encrypt_maxbits;
    120  uint32_t sadb_comb_reserved;
    121  uint32_t sadb_comb_soft_allocations;
    122  uint32_t sadb_comb_hard_allocations;
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124  uint64_t sadb_comb_soft_bytes;
    125  uint64_t sadb_comb_hard_bytes;
    126  uint64_t sadb_comb_soft_addtime;
    127  uint64_t sadb_comb_hard_addtime;
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129  uint64_t sadb_comb_soft_usetime;
    130  uint64_t sadb_comb_hard_usetime;
    131 } __attribute__((packed));
    132 struct sadb_supported {
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134  uint16_t sadb_supported_len;
    135  uint16_t sadb_supported_exttype;
    136  uint32_t sadb_supported_reserved;
    137 } __attribute__((packed));
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 struct sadb_alg {
    140  uint8_t sadb_alg_id;
    141  uint8_t sadb_alg_ivlen;
    142  uint16_t sadb_alg_minbits;
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144  uint16_t sadb_alg_maxbits;
    145  uint16_t sadb_alg_reserved;
    146 } __attribute__((packed));
    147 struct sadb_spirange {
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149  uint16_t sadb_spirange_len;
    150  uint16_t sadb_spirange_exttype;
    151  uint32_t sadb_spirange_min;
    152  uint32_t sadb_spirange_max;
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154  uint32_t sadb_spirange_reserved;
    155 } __attribute__((packed));
    156 struct sadb_x_kmprivate {
    157  uint16_t sadb_x_kmprivate_len;
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159  uint16_t sadb_x_kmprivate_exttype;
    160  uint32_t sadb_x_kmprivate_reserved;
    161 } __attribute__((packed));
    162 struct sadb_x_sa2 {
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164  uint16_t sadb_x_sa2_len;
    165  uint16_t sadb_x_sa2_exttype;
    166  uint8_t sadb_x_sa2_mode;
    167  uint8_t sadb_x_sa2_reserved1;
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169  uint16_t sadb_x_sa2_reserved2;
    170  uint32_t sadb_x_sa2_sequence;
    171  uint32_t sadb_x_sa2_reqid;
    172 } __attribute__((packed));
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174 struct sadb_x_policy {
    175  uint16_t sadb_x_policy_len;
    176  uint16_t sadb_x_policy_exttype;
    177  uint16_t sadb_x_policy_type;
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179  uint8_t sadb_x_policy_dir;
    180  uint8_t sadb_x_policy_reserved;
    181  uint32_t sadb_x_policy_id;
    182  uint32_t sadb_x_policy_priority;
    183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    184 } __attribute__((packed));
    185 struct sadb_x_ipsecrequest {
    186  uint16_t sadb_x_ipsecrequest_len;
    187  uint16_t sadb_x_ipsecrequest_proto;
    188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    189  uint8_t sadb_x_ipsecrequest_mode;
    190  uint8_t sadb_x_ipsecrequest_level;
    191  uint16_t sadb_x_ipsecrequest_reserved1;
    192  uint32_t sadb_x_ipsecrequest_reqid;
    193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    194  uint32_t sadb_x_ipsecrequest_reserved2;
    195 } __attribute__((packed));
    196 struct sadb_x_nat_t_type {
    197  uint16_t sadb_x_nat_t_type_len;
    198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    199  uint16_t sadb_x_nat_t_type_exttype;
    200  uint8_t sadb_x_nat_t_type_type;
    201  uint8_t sadb_x_nat_t_type_reserved[3];
    202 } __attribute__((packed));
    203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    204 struct sadb_x_nat_t_port {
    205  uint16_t sadb_x_nat_t_port_len;
    206  uint16_t sadb_x_nat_t_port_exttype;
    207  uint16_t sadb_x_nat_t_port_port;
    208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    209  uint16_t sadb_x_nat_t_port_reserved;
    210 } __attribute__((packed));
    211 struct sadb_x_sec_ctx {
    212  uint16_t sadb_x_sec_len;
    213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    214  uint16_t sadb_x_sec_exttype;
    215  uint8_t sadb_x_ctx_alg;
    216  uint8_t sadb_x_ctx_doi;
    217  uint16_t sadb_x_ctx_len;
    218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    219 } __attribute__((packed));
    220 #define SADB_RESERVED 0
    221 #define SADB_GETSPI 1
    222 #define SADB_UPDATE 2
    223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    224 #define SADB_ADD 3
    225 #define SADB_DELETE 4
    226 #define SADB_GET 5
    227 #define SADB_ACQUIRE 6
    228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    229 #define SADB_REGISTER 7
    230 #define SADB_EXPIRE 8
    231 #define SADB_FLUSH 9
    232 #define SADB_DUMP 10
    233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    234 #define SADB_X_PROMISC 11
    235 #define SADB_X_PCHANGE 12
    236 #define SADB_X_SPDUPDATE 13
    237 #define SADB_X_SPDADD 14
    238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    239 #define SADB_X_SPDDELETE 15
    240 #define SADB_X_SPDGET 16
    241 #define SADB_X_SPDACQUIRE 17
    242 #define SADB_X_SPDDUMP 18
    243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    244 #define SADB_X_SPDFLUSH 19
    245 #define SADB_X_SPDSETIDX 20
    246 #define SADB_X_SPDEXPIRE 21
    247 #define SADB_X_SPDDELETE2 22
    248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    249 #define SADB_X_NAT_T_NEW_MAPPING 23
    250 #define SADB_MAX 23
    251 #define SADB_SAFLAGS_PFS 1
    252 #define SADB_SAFLAGS_NOPMTUDISC 0x20000000
    253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    254 #define SADB_SAFLAGS_DECAP_DSCP 0x40000000
    255 #define SADB_SAFLAGS_NOECN 0x80000000
    256 #define SADB_SASTATE_LARVAL 0
    257 #define SADB_SASTATE_MATURE 1
    258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    259 #define SADB_SASTATE_DYING 2
    260 #define SADB_SASTATE_DEAD 3
    261 #define SADB_SASTATE_MAX 3
    262 #define SADB_SATYPE_UNSPEC 0
    263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    264 #define SADB_SATYPE_AH 2
    265 #define SADB_SATYPE_ESP 3
    266 #define SADB_SATYPE_RSVP 5
    267 #define SADB_SATYPE_OSPFV2 6
    268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    269 #define SADB_SATYPE_RIPV2 7
    270 #define SADB_SATYPE_MIP 8
    271 #define SADB_X_SATYPE_IPCOMP 9
    272 #define SADB_SATYPE_MAX 9
    273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    274 #define SADB_AALG_NONE 0
    275 #define SADB_AALG_MD5HMAC 2
    276 #define SADB_AALG_SHA1HMAC 3
    277 #define SADB_X_AALG_SHA2_256HMAC 5
    278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    279 #define SADB_X_AALG_SHA2_384HMAC 6
    280 #define SADB_X_AALG_SHA2_512HMAC 7
    281 #define SADB_X_AALG_RIPEMD160HMAC 8
    282 #define SADB_X_AALG_NULL 251
    283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    284 #define SADB_AALG_MAX 251
    285 #define SADB_EALG_NONE 0
    286 #define SADB_EALG_DESCBC 2
    287 #define SADB_EALG_3DESCBC 3
    288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    289 #define SADB_X_EALG_CASTCBC 6
    290 #define SADB_X_EALG_BLOWFISHCBC 7
    291 #define SADB_EALG_NULL 11
    292 #define SADB_X_EALG_AESCBC 12
    293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    294 #define SADB_EALG_MAX 253
    295 #define SADB_X_EALG_SERPENTCBC 252
    296 #define SADB_X_EALG_TWOFISHCBC 253
    297 #define SADB_X_CALG_NONE 0
    298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    299 #define SADB_X_CALG_OUI 1
    300 #define SADB_X_CALG_DEFLATE 2
    301 #define SADB_X_CALG_LZS 3
    302 #define SADB_X_CALG_LZJH 4
    303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    304 #define SADB_X_CALG_MAX 4
    305 #define SADB_EXT_RESERVED 0
    306 #define SADB_EXT_SA 1
    307 #define SADB_EXT_LIFETIME_CURRENT 2
    308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    309 #define SADB_EXT_LIFETIME_HARD 3
    310 #define SADB_EXT_LIFETIME_SOFT 4
    311 #define SADB_EXT_ADDRESS_SRC 5
    312 #define SADB_EXT_ADDRESS_DST 6
    313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    314 #define SADB_EXT_ADDRESS_PROXY 7
    315 #define SADB_EXT_KEY_AUTH 8
    316 #define SADB_EXT_KEY_ENCRYPT 9
    317 #define SADB_EXT_IDENTITY_SRC 10
    318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    319 #define SADB_EXT_IDENTITY_DST 11
    320 #define SADB_EXT_SENSITIVITY 12
    321 #define SADB_EXT_PROPOSAL 13
    322 #define SADB_EXT_SUPPORTED_AUTH 14
    323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    324 #define SADB_EXT_SUPPORTED_ENCRYPT 15
    325 #define SADB_EXT_SPIRANGE 16
    326 #define SADB_X_EXT_KMPRIVATE 17
    327 #define SADB_X_EXT_POLICY 18
    328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    329 #define SADB_X_EXT_SA2 19
    330 #define SADB_X_EXT_NAT_T_TYPE 20
    331 #define SADB_X_EXT_NAT_T_SPORT 21
    332 #define SADB_X_EXT_NAT_T_DPORT 22
    333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    334 #define SADB_X_EXT_NAT_T_OA 23
    335 #define SADB_X_EXT_SEC_CTX 24
    336 #define SADB_EXT_MAX 24
    337 #define SADB_IDENTTYPE_RESERVED 0
    338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    339 #define SADB_IDENTTYPE_PREFIX 1
    340 #define SADB_IDENTTYPE_FQDN 2
    341 #define SADB_IDENTTYPE_USERFQDN 3
    342 #define SADB_IDENTTYPE_MAX 3
    343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    344 #endif
    345