The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _LINUX_PFKEY2_H |
| 20 | #define _LINUX_PFKEY2_H |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 21 | #include <linux/types.h> |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 22 | #define PF_KEY_V2 2 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 24 | #define PFKEYV2_REVISION 199806L |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 25 | struct sadb_msg { |
| 26 | uint8_t sadb_msg_version; |
| 27 | uint8_t sadb_msg_type; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 29 | uint8_t sadb_msg_errno; |
| 30 | uint8_t sadb_msg_satype; |
| 31 | uint16_t sadb_msg_len; |
| 32 | uint16_t sadb_msg_reserved; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 34 | uint32_t sadb_msg_seq; |
| 35 | uint32_t sadb_msg_pid; |
| 36 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 37 | struct sadb_ext { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 39 | uint16_t sadb_ext_len; |
| 40 | uint16_t sadb_ext_type; |
| 41 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 42 | struct sadb_sa { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 44 | uint16_t sadb_sa_len; |
| 45 | uint16_t sadb_sa_exttype; |
| 46 | uint32_t sadb_sa_spi; |
| 47 | uint8_t sadb_sa_replay; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 49 | uint8_t sadb_sa_state; |
| 50 | uint8_t sadb_sa_auth; |
| 51 | uint8_t sadb_sa_encrypt; |
| 52 | uint32_t sadb_sa_flags; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 54 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 55 | struct sadb_lifetime { |
| 56 | uint16_t sadb_lifetime_len; |
| 57 | uint16_t sadb_lifetime_exttype; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 59 | uint32_t sadb_lifetime_allocations; |
| 60 | uint64_t sadb_lifetime_bytes; |
| 61 | uint64_t sadb_lifetime_addtime; |
| 62 | uint64_t sadb_lifetime_usetime; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 64 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 65 | struct sadb_address { |
| 66 | uint16_t sadb_address_len; |
| 67 | uint16_t sadb_address_exttype; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 69 | uint8_t sadb_address_proto; |
| 70 | uint8_t sadb_address_prefixlen; |
| 71 | uint16_t sadb_address_reserved; |
| 72 | } __attribute__((packed)); |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 74 | struct sadb_key { |
| 75 | uint16_t sadb_key_len; |
| 76 | uint16_t sadb_key_exttype; |
| 77 | uint16_t sadb_key_bits; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 79 | uint16_t sadb_key_reserved; |
| 80 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 81 | struct sadb_ident { |
| 82 | uint16_t sadb_ident_len; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 84 | uint16_t sadb_ident_exttype; |
| 85 | uint16_t sadb_ident_type; |
| 86 | uint16_t sadb_ident_reserved; |
| 87 | uint64_t sadb_ident_id; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 89 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 90 | struct sadb_sens { |
| 91 | uint16_t sadb_sens_len; |
| 92 | uint16_t sadb_sens_exttype; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 99 | uint8_t sadb_sens_integ_len; |
| 100 | uint32_t sadb_sens_reserved; |
| 101 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 102 | struct sadb_prop { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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]; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 109 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 110 | struct sadb_comb { |
| 111 | uint8_t sadb_comb_auth; |
| 112 | uint8_t sadb_comb_encrypt; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 129 | uint64_t sadb_comb_soft_usetime; |
| 130 | uint64_t sadb_comb_hard_usetime; |
| 131 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 132 | struct sadb_supported { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 134 | uint16_t sadb_supported_len; |
| 135 | uint16_t sadb_supported_exttype; |
| 136 | uint32_t sadb_supported_reserved; |
| 137 | } __attribute__((packed)); |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 138 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 139 | struct sadb_alg { |
| 140 | uint8_t sadb_alg_id; |
| 141 | uint8_t sadb_alg_ivlen; |
| 142 | uint16_t sadb_alg_minbits; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 143 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 144 | uint16_t sadb_alg_maxbits; |
| 145 | uint16_t sadb_alg_reserved; |
| 146 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 147 | struct sadb_spirange { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 148 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 149 | uint16_t sadb_spirange_len; |
| 150 | uint16_t sadb_spirange_exttype; |
| 151 | uint32_t sadb_spirange_min; |
| 152 | uint32_t sadb_spirange_max; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 153 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 154 | uint32_t sadb_spirange_reserved; |
| 155 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 156 | struct sadb_x_kmprivate { |
| 157 | uint16_t sadb_x_kmprivate_len; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 158 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 159 | uint16_t sadb_x_kmprivate_exttype; |
| 160 | uint32_t sadb_x_kmprivate_reserved; |
| 161 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 162 | struct sadb_x_sa2 { |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 163 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 168 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 169 | uint16_t sadb_x_sa2_reserved2; |
| 170 | uint32_t sadb_x_sa2_sequence; |
| 171 | uint32_t sadb_x_sa2_reqid; |
| 172 | } __attribute__((packed)); |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 173 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 178 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 183 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 184 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 185 | struct sadb_x_ipsecrequest { |
| 186 | uint16_t sadb_x_ipsecrequest_len; |
| 187 | uint16_t sadb_x_ipsecrequest_proto; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 188 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 193 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 194 | uint32_t sadb_x_ipsecrequest_reserved2; |
| 195 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 196 | struct sadb_x_nat_t_type { |
| 197 | uint16_t sadb_x_nat_t_type_len; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 198 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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)); |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 203 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 208 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 209 | uint16_t sadb_x_nat_t_port_reserved; |
| 210 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 211 | struct sadb_x_sec_ctx { |
| 212 | uint16_t sadb_x_sec_len; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 213 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 218 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 219 | } __attribute__((packed)); |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 220 | #define SADB_RESERVED 0 |
| 221 | #define SADB_GETSPI 1 |
| 222 | #define SADB_UPDATE 2 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 223 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 224 | #define SADB_ADD 3 |
| 225 | #define SADB_DELETE 4 |
| 226 | #define SADB_GET 5 |
| 227 | #define SADB_ACQUIRE 6 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 228 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 229 | #define SADB_REGISTER 7 |
| 230 | #define SADB_EXPIRE 8 |
| 231 | #define SADB_FLUSH 9 |
| 232 | #define SADB_DUMP 10 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 233 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 234 | #define SADB_X_PROMISC 11 |
| 235 | #define SADB_X_PCHANGE 12 |
| 236 | #define SADB_X_SPDUPDATE 13 |
| 237 | #define SADB_X_SPDADD 14 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 238 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 239 | #define SADB_X_SPDDELETE 15 |
| 240 | #define SADB_X_SPDGET 16 |
| 241 | #define SADB_X_SPDACQUIRE 17 |
| 242 | #define SADB_X_SPDDUMP 18 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 243 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 244 | #define SADB_X_SPDFLUSH 19 |
| 245 | #define SADB_X_SPDSETIDX 20 |
| 246 | #define SADB_X_SPDEXPIRE 21 |
| 247 | #define SADB_X_SPDDELETE2 22 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 248 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 249 | #define SADB_X_NAT_T_NEW_MAPPING 23 |
| 250 | #define SADB_MAX 23 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 251 | #define SADB_SAFLAGS_PFS 1 |
| 252 | #define SADB_SAFLAGS_NOPMTUDISC 0x20000000 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 253 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 254 | #define SADB_SAFLAGS_DECAP_DSCP 0x40000000 |
| 255 | #define SADB_SAFLAGS_NOECN 0x80000000 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 256 | #define SADB_SASTATE_LARVAL 0 |
| 257 | #define SADB_SASTATE_MATURE 1 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 258 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 259 | #define SADB_SASTATE_DYING 2 |
| 260 | #define SADB_SASTATE_DEAD 3 |
| 261 | #define SADB_SASTATE_MAX 3 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 262 | #define SADB_SATYPE_UNSPEC 0 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 263 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 264 | #define SADB_SATYPE_AH 2 |
| 265 | #define SADB_SATYPE_ESP 3 |
| 266 | #define SADB_SATYPE_RSVP 5 |
| 267 | #define SADB_SATYPE_OSPFV2 6 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 268 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 273 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 278 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 283 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 284 | #define SADB_AALG_MAX 251 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 285 | #define SADB_EALG_NONE 0 |
| 286 | #define SADB_EALG_DESCBC 2 |
| 287 | #define SADB_EALG_3DESCBC 3 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 288 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 293 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 294 | #define SADB_EALG_MAX 253 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 295 | #define SADB_X_EALG_SERPENTCBC 252 |
| 296 | #define SADB_X_EALG_TWOFISHCBC 253 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 297 | #define SADB_X_CALG_NONE 0 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 298 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 303 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 304 | #define SADB_X_CALG_MAX 4 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 305 | #define SADB_EXT_RESERVED 0 |
| 306 | #define SADB_EXT_SA 1 |
| 307 | #define SADB_EXT_LIFETIME_CURRENT 2 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 308 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 313 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 318 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 323 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 328 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 329 | #define SADB_X_EXT_SA2 19 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 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 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 333 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 334 | #define SADB_X_EXT_NAT_T_OA 23 |
| 335 | #define SADB_X_EXT_SEC_CTX 24 |
| 336 | #define SADB_EXT_MAX 24 |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 337 | #define SADB_IDENTTYPE_RESERVED 0 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 338 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 339 | #define SADB_IDENTTYPE_PREFIX 1 |
| 340 | #define SADB_IDENTTYPE_FQDN 2 |
| 341 | #define SADB_IDENTTYPE_USERFQDN 3 |
| 342 | #define SADB_IDENTTYPE_MAX 3 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 343 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 344 | #endif |