blob: f4df574bfdc493b5c7b3111416d3c3597c267e99 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
25struct sadb_msg {
Tao Baod7db5942015-01-28 10:07:51 -080026 __u8 sadb_msg_version;
27 __u8 sadb_msg_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u8 sadb_msg_errno;
30 __u8 sadb_msg_satype;
31 __u16 sadb_msg_len;
32 __u16 sadb_msg_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u32 sadb_msg_seq;
35 __u32 sadb_msg_pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070036} __attribute__((packed));
37struct sadb_ext {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u16 sadb_ext_len;
40 __u16 sadb_ext_type;
Ben Cheng655a7c02013-10-16 16:09:24 -070041} __attribute__((packed));
42struct sadb_sa {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u16 sadb_sa_len;
45 __u16 sadb_sa_exttype;
46 __be32 sadb_sa_spi;
47 __u8 sadb_sa_replay;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u8 sadb_sa_state;
50 __u8 sadb_sa_auth;
51 __u8 sadb_sa_encrypt;
52 __u32 sadb_sa_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54} __attribute__((packed));
55struct sadb_lifetime {
Tao Baod7db5942015-01-28 10:07:51 -080056 __u16 sadb_lifetime_len;
57 __u16 sadb_lifetime_exttype;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u32 sadb_lifetime_allocations;
60 __u64 sadb_lifetime_bytes;
61 __u64 sadb_lifetime_addtime;
62 __u64 sadb_lifetime_usetime;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64} __attribute__((packed));
65struct sadb_address {
Tao Baod7db5942015-01-28 10:07:51 -080066 __u16 sadb_address_len;
67 __u16 sadb_address_exttype;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u8 sadb_address_proto;
70 __u8 sadb_address_prefixlen;
71 __u16 sadb_address_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070072} __attribute__((packed));
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74struct sadb_key {
Tao Baod7db5942015-01-28 10:07:51 -080075 __u16 sadb_key_len;
76 __u16 sadb_key_exttype;
77 __u16 sadb_key_bits;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u16 sadb_key_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070080} __attribute__((packed));
81struct sadb_ident {
Tao Baod7db5942015-01-28 10:07:51 -080082 __u16 sadb_ident_len;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 __u16 sadb_ident_exttype;
85 __u16 sadb_ident_type;
86 __u16 sadb_ident_reserved;
87 __u64 sadb_ident_id;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89} __attribute__((packed));
90struct sadb_sens {
Tao Baod7db5942015-01-28 10:07:51 -080091 __u16 sadb_sens_len;
92 __u16 sadb_sens_exttype;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 __u32 sadb_sens_dpd;
95 __u8 sadb_sens_sens_level;
96 __u8 sadb_sens_sens_len;
97 __u8 sadb_sens_integ_level;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 __u8 sadb_sens_integ_len;
100 __u32 sadb_sens_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700101} __attribute__((packed));
102struct sadb_prop {
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 __u16 sadb_prop_len;
105 __u16 sadb_prop_exttype;
106 __u8 sadb_prop_replay;
107 __u8 sadb_prop_reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109} __attribute__((packed));
110struct sadb_comb {
Tao Baod7db5942015-01-28 10:07:51 -0800111 __u8 sadb_comb_auth;
112 __u8 sadb_comb_encrypt;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 __u16 sadb_comb_flags;
115 __u16 sadb_comb_auth_minbits;
116 __u16 sadb_comb_auth_maxbits;
117 __u16 sadb_comb_encrypt_minbits;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 __u16 sadb_comb_encrypt_maxbits;
120 __u32 sadb_comb_reserved;
121 __u32 sadb_comb_soft_allocations;
122 __u32 sadb_comb_hard_allocations;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 __u64 sadb_comb_soft_bytes;
125 __u64 sadb_comb_hard_bytes;
126 __u64 sadb_comb_soft_addtime;
127 __u64 sadb_comb_hard_addtime;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 __u64 sadb_comb_soft_usetime;
130 __u64 sadb_comb_hard_usetime;
Ben Cheng655a7c02013-10-16 16:09:24 -0700131} __attribute__((packed));
132struct sadb_supported {
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 __u16 sadb_supported_len;
135 __u16 sadb_supported_exttype;
136 __u32 sadb_supported_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700137} __attribute__((packed));
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139struct sadb_alg {
Tao Baod7db5942015-01-28 10:07:51 -0800140 __u8 sadb_alg_id;
141 __u8 sadb_alg_ivlen;
142 __u16 sadb_alg_minbits;
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 __u16 sadb_alg_maxbits;
145 __u16 sadb_alg_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700146} __attribute__((packed));
147struct sadb_spirange {
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 __u16 sadb_spirange_len;
150 __u16 sadb_spirange_exttype;
151 __u32 sadb_spirange_min;
152 __u32 sadb_spirange_max;
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 __u32 sadb_spirange_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700155} __attribute__((packed));
156struct sadb_x_kmprivate {
Tao Baod7db5942015-01-28 10:07:51 -0800157 __u16 sadb_x_kmprivate_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 __u16 sadb_x_kmprivate_exttype;
160 __u32 sadb_x_kmprivate_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700161} __attribute__((packed));
162struct sadb_x_sa2 {
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 __u16 sadb_x_sa2_len;
165 __u16 sadb_x_sa2_exttype;
166 __u8 sadb_x_sa2_mode;
167 __u8 sadb_x_sa2_reserved1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 __u16 sadb_x_sa2_reserved2;
170 __u32 sadb_x_sa2_sequence;
171 __u32 sadb_x_sa2_reqid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700172} __attribute__((packed));
173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174struct sadb_x_policy {
Tao Baod7db5942015-01-28 10:07:51 -0800175 __u16 sadb_x_policy_len;
176 __u16 sadb_x_policy_exttype;
177 __u16 sadb_x_policy_type;
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 __u8 sadb_x_policy_dir;
180 __u8 sadb_x_policy_reserved;
181 __u32 sadb_x_policy_id;
182 __u32 sadb_x_policy_priority;
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184} __attribute__((packed));
185struct sadb_x_ipsecrequest {
Tao Baod7db5942015-01-28 10:07:51 -0800186 __u16 sadb_x_ipsecrequest_len;
187 __u16 sadb_x_ipsecrequest_proto;
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800189 __u8 sadb_x_ipsecrequest_mode;
190 __u8 sadb_x_ipsecrequest_level;
191 __u16 sadb_x_ipsecrequest_reserved1;
192 __u32 sadb_x_ipsecrequest_reqid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800194 __u32 sadb_x_ipsecrequest_reserved2;
Ben Cheng655a7c02013-10-16 16:09:24 -0700195} __attribute__((packed));
196struct sadb_x_nat_t_type {
Tao Baod7db5942015-01-28 10:07:51 -0800197 __u16 sadb_x_nat_t_type_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800199 __u16 sadb_x_nat_t_type_exttype;
200 __u8 sadb_x_nat_t_type_type;
201 __u8 sadb_x_nat_t_type_reserved[3];
Ben Cheng655a7c02013-10-16 16:09:24 -0700202} __attribute__((packed));
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204struct sadb_x_nat_t_port {
Tao Baod7db5942015-01-28 10:07:51 -0800205 __u16 sadb_x_nat_t_port_len;
206 __u16 sadb_x_nat_t_port_exttype;
207 __be16 sadb_x_nat_t_port_port;
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800209 __u16 sadb_x_nat_t_port_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700210} __attribute__((packed));
211struct sadb_x_sec_ctx {
Tao Baod7db5942015-01-28 10:07:51 -0800212 __u16 sadb_x_sec_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800214 __u16 sadb_x_sec_exttype;
215 __u8 sadb_x_ctx_alg;
216 __u8 sadb_x_ctx_doi;
217 __u16 sadb_x_ctx_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219} __attribute__((packed));
220struct sadb_x_kmaddress {
Tao Baod7db5942015-01-28 10:07:51 -0800221 __u16 sadb_x_kmaddress_len;
222 __u16 sadb_x_kmaddress_exttype;
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800224 __u32 sadb_x_kmaddress_reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -0700225} __attribute__((packed));
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700226struct sadb_x_filter {
Tao Baod7db5942015-01-28 10:07:51 -0800227 __u16 sadb_x_filter_len;
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800229 __u16 sadb_x_filter_exttype;
230 __u32 sadb_x_filter_saddr[4];
231 __u32 sadb_x_filter_daddr[4];
232 __u16 sadb_x_filter_family;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800234 __u8 sadb_x_filter_splen;
235 __u8 sadb_x_filter_dplen;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700236} __attribute__((packed));
237#define SADB_RESERVED 0
238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239#define SADB_GETSPI 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700240#define SADB_UPDATE 2
241#define SADB_ADD 3
242#define SADB_DELETE 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700244#define SADB_GET 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700245#define SADB_ACQUIRE 6
246#define SADB_REGISTER 7
247#define SADB_EXPIRE 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700249#define SADB_FLUSH 9
Ben Cheng655a7c02013-10-16 16:09:24 -0700250#define SADB_DUMP 10
251#define SADB_X_PROMISC 11
252#define SADB_X_PCHANGE 12
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700254#define SADB_X_SPDUPDATE 13
Ben Cheng655a7c02013-10-16 16:09:24 -0700255#define SADB_X_SPDADD 14
256#define SADB_X_SPDDELETE 15
257#define SADB_X_SPDGET 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700259#define SADB_X_SPDACQUIRE 17
Ben Cheng655a7c02013-10-16 16:09:24 -0700260#define SADB_X_SPDDUMP 18
261#define SADB_X_SPDFLUSH 19
262#define SADB_X_SPDSETIDX 20
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700264#define SADB_X_SPDEXPIRE 21
Ben Cheng655a7c02013-10-16 16:09:24 -0700265#define SADB_X_SPDDELETE2 22
266#define SADB_X_NAT_T_NEW_MAPPING 23
267#define SADB_X_MIGRATE 24
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700269#define SADB_MAX 24
Ben Cheng655a7c02013-10-16 16:09:24 -0700270#define SADB_SAFLAGS_PFS 1
271#define SADB_SAFLAGS_NOPMTUDISC 0x20000000
272#define SADB_SAFLAGS_DECAP_DSCP 0x40000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700274#define SADB_SAFLAGS_NOECN 0x80000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700275#define SADB_SASTATE_LARVAL 0
276#define SADB_SASTATE_MATURE 1
277#define SADB_SASTATE_DYING 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700279#define SADB_SASTATE_DEAD 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700280#define SADB_SASTATE_MAX 3
281#define SADB_SATYPE_UNSPEC 0
282#define SADB_SATYPE_AH 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700284#define SADB_SATYPE_ESP 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700285#define SADB_SATYPE_RSVP 5
286#define SADB_SATYPE_OSPFV2 6
287#define SADB_SATYPE_RIPV2 7
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700289#define SADB_SATYPE_MIP 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700290#define SADB_X_SATYPE_IPCOMP 9
291#define SADB_SATYPE_MAX 9
292#define SADB_AALG_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700294#define SADB_AALG_MD5HMAC 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700295#define SADB_AALG_SHA1HMAC 3
296#define SADB_X_AALG_SHA2_256HMAC 5
297#define SADB_X_AALG_SHA2_384HMAC 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700299#define SADB_X_AALG_SHA2_512HMAC 7
Ben Cheng655a7c02013-10-16 16:09:24 -0700300#define SADB_X_AALG_RIPEMD160HMAC 8
301#define SADB_X_AALG_AES_XCBC_MAC 9
302#define SADB_X_AALG_NULL 251
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700304#define SADB_AALG_MAX 251
Ben Cheng655a7c02013-10-16 16:09:24 -0700305#define SADB_EALG_NONE 0
306#define SADB_EALG_DESCBC 2
307#define SADB_EALG_3DESCBC 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700309#define SADB_X_EALG_CASTCBC 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700310#define SADB_X_EALG_BLOWFISHCBC 7
311#define SADB_EALG_NULL 11
312#define SADB_X_EALG_AESCBC 12
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700314#define SADB_X_EALG_AESCTR 13
Ben Cheng655a7c02013-10-16 16:09:24 -0700315#define SADB_X_EALG_AES_CCM_ICV8 14
316#define SADB_X_EALG_AES_CCM_ICV12 15
317#define SADB_X_EALG_AES_CCM_ICV16 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700319#define SADB_X_EALG_AES_GCM_ICV8 18
Ben Cheng655a7c02013-10-16 16:09:24 -0700320#define SADB_X_EALG_AES_GCM_ICV12 19
321#define SADB_X_EALG_AES_GCM_ICV16 20
322#define SADB_X_EALG_CAMELLIACBC 22
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700324#define SADB_X_EALG_NULL_AES_GMAC 23
Ben Cheng655a7c02013-10-16 16:09:24 -0700325#define SADB_EALG_MAX 253
326#define SADB_X_EALG_SERPENTCBC 252
327#define SADB_X_EALG_TWOFISHCBC 253
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700329#define SADB_X_CALG_NONE 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700330#define SADB_X_CALG_OUI 1
331#define SADB_X_CALG_DEFLATE 2
332#define SADB_X_CALG_LZS 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700334#define SADB_X_CALG_LZJH 4
Ben Cheng655a7c02013-10-16 16:09:24 -0700335#define SADB_X_CALG_MAX 4
336#define SADB_EXT_RESERVED 0
337#define SADB_EXT_SA 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700339#define SADB_EXT_LIFETIME_CURRENT 2
Ben Cheng655a7c02013-10-16 16:09:24 -0700340#define SADB_EXT_LIFETIME_HARD 3
341#define SADB_EXT_LIFETIME_SOFT 4
342#define SADB_EXT_ADDRESS_SRC 5
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700344#define SADB_EXT_ADDRESS_DST 6
Ben Cheng655a7c02013-10-16 16:09:24 -0700345#define SADB_EXT_ADDRESS_PROXY 7
346#define SADB_EXT_KEY_AUTH 8
347#define SADB_EXT_KEY_ENCRYPT 9
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700349#define SADB_EXT_IDENTITY_SRC 10
Ben Cheng655a7c02013-10-16 16:09:24 -0700350#define SADB_EXT_IDENTITY_DST 11
351#define SADB_EXT_SENSITIVITY 12
352#define SADB_EXT_PROPOSAL 13
Ben Cheng655a7c02013-10-16 16:09:24 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700354#define SADB_EXT_SUPPORTED_AUTH 14
Ben Cheng655a7c02013-10-16 16:09:24 -0700355#define SADB_EXT_SUPPORTED_ENCRYPT 15
356#define SADB_EXT_SPIRANGE 16
357#define SADB_X_EXT_KMPRIVATE 17
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700359#define SADB_X_EXT_POLICY 18
Ben Cheng655a7c02013-10-16 16:09:24 -0700360#define SADB_X_EXT_SA2 19
361#define SADB_X_EXT_NAT_T_TYPE 20
362#define SADB_X_EXT_NAT_T_SPORT 21
Ben Cheng655a7c02013-10-16 16:09:24 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700364#define SADB_X_EXT_NAT_T_DPORT 22
Ben Cheng655a7c02013-10-16 16:09:24 -0700365#define SADB_X_EXT_NAT_T_OA 23
366#define SADB_X_EXT_SEC_CTX 24
367#define SADB_X_EXT_KMADDRESS 25
Ben Cheng655a7c02013-10-16 16:09:24 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700369#define SADB_X_EXT_FILTER 26
370#define SADB_EXT_MAX 26
Ben Cheng655a7c02013-10-16 16:09:24 -0700371#define SADB_IDENTTYPE_RESERVED 0
372#define SADB_IDENTTYPE_PREFIX 1
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700374#define SADB_IDENTTYPE_FQDN 2
375#define SADB_IDENTTYPE_USERFQDN 3
Ben Cheng655a7c02013-10-16 16:09:24 -0700376#define SADB_IDENTTYPE_MAX 3
377#endif
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */